This is an restful Web application which recommend movie
Node.js version 8.11.1 Download nodeJS here (https://nodejs.org/en/)
- To install Mongodb: go to this page and download mongodb: (https://www.mongodb.com/download-center?jmp=nav#community)
- After install, config mongodb: (https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/#configure-a-windows-service-for-mongodb-community-edition)
- Set mongodb to ENV path in windows to run anywhere: (http://sysadmindata.com/set-mongodb-path-windows/)
after install mongodb: open terminal run
mongod
- run
mongo
use ML-web-app
- Go to database folder
mongoimport --db ML-web-app --collection users --jsonArray --type json --file users.json
mongoimport --db ML-web-app --collection movie --jsonArray --type json --file movie.json
git clone https://github.com/jackmercy/ML-webapp.git
npm install
- Open 1st terminal:
mongod
- Open 2nd terminal:
npm start
Express server will run atlocalhost:5000
- Run
npm run ui
for a dev server. - Navigate to
localhost:4200/
The web application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Kill terminal that run npm start
then run npm run debug
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.