A rest api application for retrieve data from Postgres by using Node.js, Express, Typescript and Sequelize.
Mert Denizgez
Install the dependencies:
yarn install
Set the environment variables:
cp .env.example .env
Example environment variables that .env
file should inclue
# Port number
PORT=3000
# Database config
DATABASE='DBNAME'
DB_USERNAME='USERNAME'
DB_PASSWORD='PASSWORD'
DB_HOST='localhost'
yarn start
Linting:
# run ESLint
yarn lint
# run prettier
yarn format