/angular5-expressjs-mongoose

Basic starter project for Angular 5, ExpressJS 4, Mongoose 5 and MongoDB 2.2

Primary LanguageTypeScript

Stack

This is basic skeleton project for Angular5, MongoDB and Mongoose written in Typescript which uses Angular Material and Angular Flex-Layout UI libraries.

Build

# Install dependencies
npm install

# Start mongod service
mongod --port=12345 (or whichever port you are using) --dbpath=/path/to/yourdb

# start server
npm run start

# Application should start on your default browser on localhost:4200 address. 
# If everything works ok you should see "Test API" button and after clicking 
# it you should get toaster with "It is alive" message.

Config

Applications url client and server, port numbers and database url can be configured in nodemon.json file.

Deploy to Heroku

Deploy

Inspired by these 2 great repos

https://github.com/dalenguyen/rest-api-node-typescript/

https://github.com/vladotesanovic/angular2-express-starter