Skip to content

maxcarter/NRAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NRAPI

NRAPI (Node.js RESTful API) is a simple Node.js RESTful API solution created using the Node-Restful library with Mongo DB integrations.

See the Node-Restful Documentation for more information about the built-in filters associated with the API.

Installation

npm install

Server

  1. Configure the server to connect to your Mongo DB database.
  2. Start the ExpressJS server by running the following commands:
npm start

Development

The Node-Restful Documentation contains various details with respect to the features and functionality of the library.

Adding a new model

  1. Create a new model using a Mongoose Schema and save it in api/v1/models.
  2. Modify api/v1/routes/routes.js to specify the desired HTTP requests associated with your model.
var customModel = require('../models/customModel');
customModel.methods(['get', 'put', 'post', 'delete']);
customModel.register(router, '/customModel');

About

A Node.js RESTful API with Mongo DB integrations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published