Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.37 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.37 KB

GraphQL Backend starter code

This repository is to be used as a starter for GraphQL based Node.js applications written in TypeScript and using PostgreSQL

I plan to implement authentication, administration, posting and integration with expo-starter frontend

info: how to migrate prisma data when changing schema

Installation and local launch

  1. Install and start PostgreSQL
  2. Clone this repo: git clone https://github.com/Borodutch/backend-starter
  3. Create .env with the environment variables listed below
  4. Run yarn in the root folder
  5. Run yarn start

And you should be good to go! Feel free to fork and submit pull requests.

Environment variables

Name Description
DB_URL URL of the mongo database
SERVER_PORT Optional, defaults to 1337. Port to run server on

Also, please, consider looking at .env.sample.

How to add your stuff:

  1. All database stuff is stored in the schema.prisma
  2. You can use any database you want, simply modify the provider in schema.prisma field (watch out, it may cause some bugs)
  3. To add more