Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 822 Bytes

README.md

File metadata and controls

54 lines (41 loc) · 822 Bytes

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.