jomadoye / node-mongoose-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Features

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

Requirements

Installation

  • git clone git@github.com:jomadoye/node-mongo-api.git
  • cd node-mongo-api
  • npm install
  • Start mongo
  • npm start
  • optional: include .env in your .gitignore

GET Routes

Beyond GET Routes

CURL

  • Create a key with:
    • curl -X POST -H "Content-Type:application/json" http://localhost:3000/keys -d '{"key":"key ID", "keyData": "key data"}'
  • Delete a key with:
    • curl -X DELETE -H "Content-Type:application/json" http://localhost:3000/keys/:id

Postman

About


Languages

Language:JavaScript 100.0%