Skip to content

trotrindonesia/basic-project-express-monolith

Repository files navigation

Basic Project Express Monolith

github-pipeline Coverage Status App Version

Basic project for creating monolithic web app using ExpressJS & Express-Handlebars.

How To Install & Running Project

$ 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 project?

  • 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

Coverage Link

https://coveralls.io/github/brothergiez/basic-project-express-monolith?branch=master