The Wayback Machine - https://web.archive.org/web/20201112025509/https://github.com/rwieruch/node-express-server-rest-api
Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
Apr 29, 2020
Nov 14, 2018
Nov 14, 2018
Nov 14, 2018
Nov 14, 2018
Nov 14, 2018
Apr 29, 2020

README.md

Simple Node with Express Server with REST API

Build Status Slack Greenkeeper badge

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

Features

  • Express
  • REST API

Requirements

Installation

  • git clone [email protected]:rwieruch/node-express-server-rest-api.git
  • cd node-express-server-rest-api
  • npm install
  • 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

Releases

No releases published

Sponsor this project

 

Packages

No packages published
You can’t perform that action at this time.