Skip to content

geshtng/node-rest

Repository files navigation

node-rest

A very simple REST API using NodeJS.
Framework using ExpressJS & database using MongoDB

Installation

$ git clone https://github.com/geshtng/node-rest
$ cd node-rest
$ npm i

# Running the server
$ npm start
# or
$ node main.js

Installation with Docker

  1. Open config.js
  2. Modify this line:
    database: 'mongodb://localhost:27017/node-rest',
    to
    database: 'mongodb://mongo:27017/node-rest',
  3. Docker command
    # Build the docker image
    $ make docker
    
    # Run
    $ make run
    
    # Stop
    $ make stop

About

A simple REST API using NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published