Skip to content

auxcoder/express-basic-api

 
 

Repository files navigation

README

Install

Create a Sqlite DB for development

$ sqlite3
sqlite> create table test.db

Install and run

$ npm install
$ npm start

Running the application

PM2


Running tests

Currently to make sure that your tests doesn’t listen “twice” from the server.js a check is done

if (!module.parent) {
  app.listen(port);
}

Another options is using Nodemon, as a npm package script:

"test": "nodemon --exec \"mocha --recursive\""

Ref

Docs


About

A Express Prisma rest API

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •