This project is a working base with authentication to build a GraphQL API. It uses Prisma as an ORM, so you can check their doc if you have any questions about how it works.
Is set to use Auth0 for token authentication.
You will need at least node v14.16.
npm install
You will need to add an .env
file with the following variables
AUTH0_AUDIENCE=
AUTH0_DOMAIN=
DATABASE_URL=
You will need to run de migration over a created db so you can build the schema with the specified constrains in prisma folder.
After you run the migrations
npx prisma migrate dev
You are ready to start working.
When I deploy to production, I'll update this doc pointing to that production experience.
You can check the schema in you prefered REST client.
I need to write tests.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.