Skip to content

dim4k/ExpressJS-RESTful-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressJS RESTful Api

RESTful API using MongoDB, ExpressJs, NodeJs

Integrated API Documentation generator using Twig and Bootstrap

api screenshot

Featuring :

  • Authentication
  • API Documentation generator

Server requirements

  • NodeJs
  • MongoDB

Installation

Clone Github repository

git clone https://github.com/dim4k/ExpressJS-RESTful-API.git

Install the dependencies

At the root of your project, run :

npm install

Optional - Create a MongoDB Service (Windows)

First download and install MongoDB from https://www.mongodb.com/download-center

Go in {ProjectDirectoryPath}/config/mongodb.conf-dist, setup the 2 paths for the MongoDB server data and log, rename the file to mongodb.conf

Run :

mongod -f "{YOUR_PROJECT_DIRECTORY}\mean_stack\config\mongodb.conf" --install --serviceName mdb27017 --serviceDisplayName "MongoDB Server Instance 27017" --serviceDescription "MongoDB Server Instance running on 27017"

Find and start the service you just created (named "MongoDB Server Instance 27017").

Setup the server

Open {YOUR_PROJECT_DIRECTORY}/config/conf.json-dist, change this configuration file according to your setup and rename it to conf.json

Run the server

At the root of your project, run :

node server.js

About

RESTful API using MongoDB, ExpressJs, NodeJs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published