CRUD API using nodejs and express on local filesystem
- Clone this repository.
- Install all the dependencies using
yarn
ornpm install
. - Start the server using
yarn start
ornpm run start
.
- Setup Postgresql in local machine
- Clone .env.example to .env and fill required database credentials
- Run migration using
yarn migrate
- Create new migration file with
yarn migrate:make alter_table_<table>_add_column_<column> -x ts
- Use
yarn rollback
to rollback migrations