https://github.com/pa-bru/nodejs-api-starter
a simple starter to create a nodejs api with express
https://github.com/pa-bru/nodejs-api-starter
Last synced: 9 months ago
JSON representation
a simple starter to create a nodejs api with express
- Host: GitHub
- URL: https://github.com/pa-bru/nodejs-api-starter
- Owner: pa-bru
- License: mit
- Created: 2017-12-14T16:36:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T02:30:09.000Z (over 7 years ago)
- Last Synced: 2025-01-11T14:45:28.780Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nodejs-api-starter
===================
a simple starter to create a nodejs api with express
----------
Getting Started
-------------
### Install the app
```shell
$ npm install
```
### Run in Development
```shell
$ npm run dev
```
### Run in Production
First build the app
```shell
$ npm run build
```
Then serve the app
```shell
$ npm run serve
```
### Running Tests
To run all tests
```shell
$ npm run test
```
To run tests on files's changes
```shell
$ 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
```shell
$ npm run test -- --findRelatedTests my-file.js
```
### Before publishing
```shell
$ npm run validate
```
... is a shortcut which runs eslint, tests and verify that packages aren't outdated.