f820602h / Express-REST-API-Template

Minimal starter project for a Node.js RESTful API based off express generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example workflow code style: prettier

Express-REST-API-Template

Simple express boilerplate based off of express-generator. Includes eslint and prettier for linting/code formatting, nodemon for automatic server restarting, and Jest for testing.

Getting Started

Install dependencies

npm install

Running in development

npm run dev

Running in production

npm start

Runs on localhost:3000 by default but can be configured using the PORT environment variable.

Running tests

npm test

# Watch repo
npm run test:watch

Linting

npm run lint

# fix issues
npm run lint:fix

About

Minimal starter project for a Node.js RESTful API based off express generator

License:MIT License


Languages

Language:JavaScript 100.0%