This web app shows the menu and more info about 'frituren' in the Ghent area.
You will have to add 2 files called /src/environments/environment(.prod).ts
with the necessary api keys. The files should look like this:
export const environment = {
production: true,
mapskey: "<PASTE_PRODUCION_API_KEY>"
};
You will need a Google Maps Javascript API key.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
When building for Github Pages you should build with add: --base-href "https://USERNAME.github.io/REPOSITORY_NAME/"
.
To publish it, remove /dist
from .gitignore
, make a local commit and push to the gh-pages branch with:
$ git push origin `git subtree split --prefix dist master`:gh-pages --force
Lastly undo the edit in .gitignore
and reset your master branch with git reset HEAD~
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.