This is an application encompassing a vast series of components needed for a Single Page Application using MongoDB, ExpressJS, Angular 4, and NodeJS.
- NodeJS
- MongoDB
- @angular/cli
This applications demonstrates how to setup a RESTful API using NodeJS with Angular 4 Frontend. The application features token based user authentication, login, registration, a blog feed, where users can post comments, like posts, dislike posts, and create/edit/delete their own blog posts.
- Install all dependencies in package.json file. This can be done by navigating to the root directory in the command line interface and running the following command:
$ npm install
- Next, install all of the Angular 4 development dependencies in package.json file:
$ cd client/
$ npm install
- Installation is complete. Navigate to the root directory and then:
-- In root directory:
$ npm run build
$ npm start
-- Access production server at: http://localhost:8080
$ cd client/
$ ng serve
-- In another window, from root directory run:
$ npm start
-- Access development server at: http://localhost:4200
-- Access API at: http://localhost:8080
Priyam Kumar