Skip to content

Latest commit

 

History

History

3

Task 3

Tech Stack

  • Node.js 13
  • Lang: TypeScript 3.8
  • Framework: Express 4.17
  • ORM: Sequelize 5, Active Record pattern (Models)
  • Database: PostreSQL 8
  • Validator: joi-validation

DB setup

  • you have to have postgres server running locally
  • copy .env.example to .env and put DB data in there
  • run npm run db:migrate - this will make structure of your DB
  • run npm run db:seed - this will add some data to your DB

App setup

  • install dependencies by running npm i
  • start by running npm run dev

deploy

  • run npm run build to build all files into /dist folder