Restaurants Project created in Angular 6, for this project we simulated a backend using express, initializing a json file containing the fictitious data of the project.
This project is under development.
git clone https://github.com/luisconcha/restaurant_ag6.git
cd name_project
nodemon --watch backend --exec "ts-node" backend/dist/server.js
Note: nodemon must be globally installed
If you need to change the db.json file (as long as your development IDE does not run tsconfig, json automatically), go to the backend directory and do the following:
tsc -w
sudo netstat -anp | grep ":4200" || sudo kill -9 `sudo lsof -t -i:4200`
kill -9 port
ps -xa | grep node
cd name_project
ng serve
- To generate with the development settings (does the buld with .map files):
ng build
- To generate build for production (DO NOT build with .map files) :
ng build --prod
- To generate build for production on shared server (the slash in the end is important)
ng build --prod --bh=/nome_pasta/
- cd dist
python -m SimpleHTTPServer 8000
//////
email: [email protected]
password: 123456
email: [email protected]
password: 123456
email: [email protected]
password: 123456
Template link used for the project http://www.templatemonster.com/