Basic Node with Express + MongoDB Server
Branch: master
Clone or download
Latest commit 89c943f Jan 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src avoid race conditions Jan 26, 2019
.babelrc first commit Jan 4, 2019
.env make mongodb work Jan 4, 2019
.gitignore first commit Jan 4, 2019
.prettierrc first commit Jan 4, 2019
.travis.yml first commit Jan 4, 2019
README.md Update README.md Jan 8, 2019
package-lock.json make mongodb work Jan 4, 2019
package.json make mongodb work Jan 4, 2019

README.md

Simple Node with 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

  • Babel 7
  • Environment Variables
  • Express
  • REST API
  • MongoDB

Requirements

Installation

  • git clone git@github.com:rwieruch/node-express-mongodb-server.git
  • cd node-express-mongodb-server
  • 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