Skip to content

Wonder2210/graphql-typescript-pg-server

Repository files navigation

GraphQL Typescript and PostgreSQL API

This repo is part of my post intended to show how to build an API using PostgreSQL and typescript

Database

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

Run Locally

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

Running Tests

To run tests, run the following command

  yarn test:integration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published