Skip to content

akshaymittal143/backend-webservice-using-Node-and-Express

Repository files navigation

Backend Webservice using NodeJs and Express

StackShare Build Status NPM version Dependency Status devDependency Status PRs Welcome

Getting Started

  • npm start Will begin the server process using Nodemon.
  • or gulp Gulp should open a new browser window for you, but if it doesn't, just point your browser to: localhost:3000
  • I used postman for testing the API

Dependencies

  • node.js
  • express
  • mongoose
  • body-parser
  • gulp
  • gulp-nodemon
  • sinon
  • gulp-mocha
  • gulp-env
  • supertest
  • First install node.js and mongodb. Then:
$ npm init
$ npm install express --save
$ npm install mongoose --save
$ npm install body-parser --save
$ npm install gulp --save
$ npm install gulp-nodemon --save
$ npm install gulp-mocha should sinon --save-dev
$ npm install gulp-env --save-dev
$ npm install supertest --save

To Run tests

  • npm test

Setting up database

  • Install MongoDB from here
  • Create a C:/data/db folder
  • Add Mongo folder to PATH
  • Run mongod
  • Run mongo
  • Install Robo3t for MongoDB GUI
  • create a database (eg. eventAPI)

About

This is a project for web services using Node and Express with other dependencies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published