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
- Install and start PostgreSQL
- Clone this repo:
git clone https://github.com/Borodutch/backend-starter
- Create
.env
with the environment variables listed below - Run
yarn
in the root folder - Run
yarn start
And you should be good to go! Feel free to fork and submit pull requests.
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
.
- All database stuff is stored in the
schema.prisma
- You can use any database you want, simply modify the
provider
inschema.prisma
field (watch out, it may cause some bugs) - To add more