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.git
Go to the project directory
cd graphql-typescript-pg-server
Install dependencies
yarn install
Migrate Database
yarn migrate:up
Start the server
yarn dev
To run tests, run the following command
yarn test:integration