Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 671 Bytes

File metadata and controls

53 lines (35 loc) · 671 Bytes

Rest API with Expressjs-Typescript-Postgresql

A rest api application for retrieve data from Postgres by using Node.js, Express, Typescript and Sequelize.

Mert Denizgez

[email protected]

Quick Start

Install the dependencies:

yarn install

Set the environment variables:

cp .env.example .env

Environment Variables

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'

Commands

yarn start

Linting:

# run ESLint
yarn lint

# run prettier
yarn format