Skip to content

LidorAbo/INT_API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Node with Express Server with REST API

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

Features

  • Mongoose
  • Express
  • REST API
  • Windston logger
  • Body-parser for Json

Requirements

Installation

  • install npm package manager
  • git clone [email protected]:rwieruch/node-express-server-rest-api.git
  • cd api-server
  • npm install
  • start mongodb service (mongod)
  • npm start
  • optional: include .env in your .gitignore

POST Routes

CURL

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

Postman

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.1%
  • Dockerfile 7.9%