Skip to content

gemini-hlsw/navigate-configs

Repository files navigation

Navigate configs

Backend api to manage configurations database using TypeScript, Graphql and Prisma.

Launch on local development

Make sure you have installed NodeJS in your machine.

Install and start

To install needed dependencies you can use PNPM. You can enable it with corepack by running the following command:

corepack enable

Using PNPM

  • 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

Prisma

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

ERD

Database Diagram