Quick Setup With Mongo and Mongoose and using Express 4 to create a RESTful Endpoint
This a quick workthrough of how you might setup a RESTful web api with Node Express Application. Other items to note are as follows:
- Express is used to create routing for our RESTful api
- The routes have been abstracted out of the app.js file and placed in their own folder
- Mongoose is used to interface with my sandbox cloud configuration of Mongo
- When running locally you can expose the api at http://localhost:3000
Used the following as a reference guide to build standard Angular 2 app with webkit: https://angular.io/docs/ts/latest/guide/webpack.html
The front end is a standard build of the angular 2 with the following presetup:
- Dev, Prod, and Test versions of the webconfig to streamline different processes
- Karma and jasmine pre-setup to work the webpack.test configuration
- When running locally you can see the UI at http://localhost:8080
CHORES:
- Add update UI to show contact-manager UX
- Update webpack to build LESS/SASS (based on how I am feeling that day)
- Add Gulp process building, cleaning, packaging, and deploying webpack project
- Streamline token based auth through facebook/linkedin provider