This repo is part of my post intended to show how to build an API using PostgreSQL and typescript
Create two databases on PostgreSQL called, post and post-test, and add your database credentials to the file src/database/config.ts
in case you might like name the databases with other name in that same file you can rename it
Clone the project
git clone https://github.com/Wonder2210/graphql-typescript-pg-server.gitGo to the project directory
cd graphql-typescript-pg-serverInstall dependencies
yarn installMigrate Database
yarn migrate:upStart the server
yarn devTo run tests, run the following command
yarn test:integration