/nodejs-afterbank

express server connected with afterbank APIs

Primary LanguageTypeScript

express-server-typescript

Sample starter project with required configuration such as express, typescript, prettier, husky and docker.

Prerequisites

  • nodejs
  • Docker and docker-compose (for containerization)
  • npm

Setup

  • git clone https://github.com/nischalshakya15/express-server-typescript.git

  • Go to the project directory

    cd express-server-typescript

  • Rename env.example to .env file

  • Install dependencies

    npm install

  • Running in development mode

    npm run start:dev

  • Running in production mode

    npm run build && npm start

  • Open the browser

    http://localhost:8080

Using Docker

  • docker-compose --compability up -d

References

https://stackify.com/winston-logging-tutorial/ https://www.codota.com/code/javascript/functions/winston/format https://medium.com/@jorgemcdev/node-express-app-typescript-tslint-prettier-airbnb-husky-c42588cbcbe3