Skip to content
A starter repository for scaffolding capstone projects.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
.babelrc
.dockerignore
.editorconfig
.env.example
.gitignore
Dockerfile
LICENSE
README.md
jsconfig.json
package.json
yarn.lock

README.md

Node.js RESTful API with Express

A starter repository for scaffolding capstone projects.

Materials

Some main dependencies of this repository:

  • Express.js Server
  • Sequelize.js ORM
  • ES6
  • CORS + Bcrypt + Authentication

Installation

Prerequisites: Node.js (>=6.x, 8.x preferred), npm version 3+ and Git.

If you don't have Yarn, install it by running:

$ npm install -g yarn

Install dependencies via yarn:

$ yarn

Config environment at .env file, example at .env.example.

Development

Running in development mode with nodemon:

$ yarn serve

Production

Build production dist files and run:

$ yarn build && yarn start

Or build production Docker image:

$ docker build -t nodejs-api . && docker run -d --name nodejs-api -p 5000:3000 nodejs-api:latest
You can’t perform that action at this time.