Simple basic mvc structure with nodejs and express framework.
- jwt authentication
- Routing
- Middleware
- Controllers
- Models
- Configuration
- Envoirment variable support
- Basic crud example
- Mongo database support
- Mongo database seeder
- Node and npm
- MongoDB Database: mLab or local
- Clone the repo
- Run command
npm install
- Copy the .env.example to your own file:
cp .env.example .env
- Set the
DB_HOST
in.env
- Start the server:
nodemon app.js
- View in postman: http://localhost:8080/api