RESTful API using MongoDB, ExpressJs, NodeJs
Integrated API Documentation generator using Twig and Bootstrap
- Authentication
- API Documentation generator
- NodeJs
- MongoDB
git clone https://github.com/dim4k/ExpressJS-RESTful-API.git
At the root of your project, run :
npm install
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").
Open {YOUR_PROJECT_DIRECTORY}/config/conf.json-dist, change this configuration file according to your setup and rename it to conf.json
At the root of your project, run :
node server.js