blattmann / meanapp

MEAN stack app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MEANapp

Complete MEAN stack application with authentication using json web tokens. Angular CLI, MongoDB and NPM need to be installed to run / build the app. Angular 2 is being used in this example app.

Version

1.0.0

Usage


Installation

Mac OSX and Homebrew

$ brew install mongodb

In case you have an older version of MongoDB installed you might ned to remove it first before you can install the latest version:

$ brew unlink mongodb

Linux / Windows

All OS

Install Angular CLI:

$ npm install -g angular-cli

Install nodemon to automatically update any changes in your code while the node server is running.

$ npm install -g nodemon

Install the dependencies:

$ npm install

Start MongoDB (if not yet started):

$ mongod

Start MongoDB shell if needed:

$ mongo

Run the dev mode:

# Run nodemon
$ nodemon

# Switch to dev folder
$ cd angular-src
$ ng serve

The app should be available on: http://localhost:4200

Build the app:

# Switch to dev folder
$ cd angular-src
$ ng build

Run the app (from app root folder only!):

$ npm start

About

MEAN stack app

License:MIT License


Languages

Language:JavaScript 99.3%Language:TypeScript 0.6%Language:HTML 0.1%Language:CSS 0.0%