/nodejs-api-starter

a simple starter to create a nodejs api with express

Primary LanguageJavaScriptMIT LicenseMIT

nodejs-api-starter

a simple starter to create a nodejs api with express

Getting Started

Install the app

$ npm install

Run in Development

$ npm run dev

Run in Production

First build the app

$ npm run build

Then serve the app

$ npm run serve

Running Tests

To run all tests

$ npm run test

To run tests on files's changes

$ npm run test -- --watch

To run test of a specific file, install jest globally (npm install -g jest) and do a jest your-file.js or do this command

$ npm run test -- --findRelatedTests my-file.js

Before publishing

$ npm run validate

... is a shortcut which runs eslint, tests and verify that packages aren't outdated.