Skip to content

kamalmahmudi/forum-api

Repository files navigation

FORUM API javascript style guide

Local Development

Prerequisites

First Run

  1. Clone repository
  2. Copy .env.example to .env and adjust the values inside.
  3. Install dependencies
    npm i
  4. Run migration
    npm run migrate up
    npm run migrate:test up # For automation testing
  5. Start development server
    npm run start:dev

Useful Scripts

  • start => run production server
    pm2 start npm --name "auth-api" -- run "start"
  • format => format code with standardjs style
  • test => run comprehensive tests with coverage report
  • test:watch => run all tests when a file has changed
  • test:watch:changed => run tests related to changed files
  • test:newman => run postman tests on CLI

Notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published