Backend api to manage configurations database using TypeScript, Graphql and Prisma.
Make sure you have installed NodeJS in your machine.
To install needed dependencies you can use PNPM. You can enable it with corepack by running the following command:
corepack enable
- Install dependencies
pnpm install
- Create a env file:
SERVER_PORT=4000 DATABASE_URL=postgresql://jimmy:banana@localhost:5432/configs
- Run the web app
pnpm run dev
A postgresql database instance is needed to run this project.
The database should be named configs
and using prisma its schema can be created using the following commands:
pnpm prisma generate
pnpm prisma migrate dev