Skip to content

Releases: trotrindonesia/basic-project-express-monolith

Release v1.0.0

21 Oct 13:02
Compare
Choose a tag to compare

Basic Project Express Monolith

Basic project for creating REST API / Monolithic Web App using ExpressJS, Express-Handlebars & MongoDB

How To Install & Running Project

Download this release, or clone from project repo.

$ git clone https://github.com/trotrindonesia/basic-project-express-monolith.git
$ cd basic-project-express-monolith
$ npm install 
$ cp .env.example .env 
$ npm run dev 

You can access from your browser sample of page rendered :
http://localhost:3000/

You can access from your rest client app (postman/insomnia) :

Method  : GET
Url     : http://localhost:3000/api/

You can access from your browser sample online documentation for rest sevice generated by SwaggerUI :
http://localhost:3000/api-docs/

You can run unit testing with command:

$ npm run test:coverage

You can run lint with command:

$ npm run lint

What's in this release?

  • View engine with express-handlebars
  • Create routes in separate file
  • Separating request handler from routes
  • SwaggerUI documentation
  • Test-Driven Development using Mocha, Chai, Sinon
  • NYC package for printing code coverage to html file