- clone repository
- run
npm i
- edit
ormconfig.json
and change your database configuration (you can also change a database type, but don't forget to install specific database drivers) - run
npm start
- open
http://localhost:3000/posts
and you'll empty array - use curl, postman or other tools to send http requests to test your typeorm-based API
- install
typeorm
globally:npm i -g typeorm
- run
typeorm -h
to show list of available commands
- Build all services
$ docker-compose up -d
- Running migrations
$ docker-compose run node sh -c "npm run migration:run"
- Running seeder
$ docker-compose run node sh -c "npm run seed:run"
- Access to pgAdmin
http://localhost:5050/
user: postgres@admin.com
password: postgres