This project was generated with Angular CLI version 1.6.8.
There a couple of things that need to be installed to run the application.
The application requires Node.js to run.
$ sudo apt update
$ sudo apt install nodejs
Npm, Node.js package manager is also required.
$ sudo apt npm
After installing Node.js, MongoDB is required to be installed.
$ sudo apt update
$ sudo apt install -y mongodb
To verify the status of the server:
$ sudo systemctl status mongodb
To stop the server:
$ sudo systemctl stop mongodb
To start the server:
$ sudo systemctl start mongodb
$ npm -g install @angular/cli
Downgrade Angular so that is compatible with Node.js v8.10.0:
$ npm -g install @angular/cli@1.6.8
Navigate to the moviedatabase directory and type:
$ npm install
$ mongoimport --db moviesDB --collection movies --jsonArray movies.json
Navigate to the moviedatabase directory and type:
$ ng serve
Then, navigate to Back-End directory and type:
$ node app.js
Then, open the browser and type [http://localhost:4200/] and the application is running!
Login only works with google account.