a0viedo / inohealth-challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running it locally

Requirements:

  • Node.js >= 20
  • Docker

Make a copy of the .env.example to a file .env.local. Run PostgreSQL as container:

docker run --name local-postgres -p 5432:5432 -e POSTGRES_PASSWORD=secret -d postgres

Afterwards create a database for this project:

docker exec -it local-postgres createdb -U postgres localdb

Install the dependencies by running npm install. You will now be able to initialize your database schema by running npm run migrate:dev.

To start Next.js you can run npm run dev and to start the tRPC service you can run npm run dev:backend.

Technologies used

The list of technologies used is the following:

  • tRPC for the communication between the Next.js backend and the microservice
  • Next.js with App Router
  • shadcn/ui
  • pino as logger
  • prisma as ORM
  • Typescript
  • ESLint for linting
  • zod for input validation
  • tsx for running ts files during development

About


Languages

Language:TypeScript 91.9%Language:CSS 7.2%Language:JavaScript 0.8%