/boilerplate-nodejs-backend

A more currated boilerplate to quickly bootstrap the developpement of backend app

Primary LanguageTypeScriptMIT LicenseMIT

Bootstrap NodeJS Backend

Overview

This bootstrap provides a well organized file structure and configurations that can be used to quickly create api with Node.js

.env structure

  # server port
  PORT=
  # test server port
  PORT_TEST=
  # mode test | dev
  MODE=
  # test database name
  TEST_DB_DATABASE=
  # database name
  DB_DATABASE=
  # database username
  DB_USER=
  # database password
  DB_PASSWORD=
  # database host
  DB_HOST=
  # database port
  DB_PORT=
  # bcrypt password
  BCRYPT_PASSWORD=
  # salt rounds for bcrypt hashing algorithm
  SALT_ROUNDS=
  # jwt secret for signing
  JWT_SECRET=