Fullstack Express + MongoDB Server

Build Status Slack Greenkeeper badge

An easy way to get started with a Express server with MongoDB with Node.js. Read more about it.

Features

  • Express
  • REST API
  • MongoDB

Requirements

Installation

  • git clone git@github.com:rwieruch/fullstack-express-mongodb-boilerplate.git
  • cd fullstack-express-mongodb-boilerplate
  • npm install
  • start MongoDB
  • npm start
  • optional: include .env in your .gitignore

GET Routes

Beyond GET Routes

CURL

  • Create a message with:
    • curl -X POST -H "Content-Type:application/json" http://localhost:3000/messages -d '{"text":"Hi again, World"}'
  • Delete a message with:
    • curl -X DELETE -H "Content-Type:application/json" http://localhost:3000/messages/1

Postman