🇧🇷 Clique aqui para ler a versão em português
Technical challenge for DonSaúde
This section contains instructions on how to run this codebase.
- Node.js
- npm
- Docker
- Docker Compose
- Access the backend folder (
donsaude-technical-challenge/backend
) - Install packages with
npm ci
- Generate Prisma types with
npx prisma generate
- Build the code with
npm run build
- Go to the frontend folder (
donsaude-technical-challenge/frontend
) - Install packages again with
npm ci
- Go back to the project root folder (
donsaude-technical-challenge
) - Start the containers with
docker compose up
(ordocker-compose up
for some cases) - Wait until the frontend host address is exhibited in the console (probably
http://localhost:5173
) - Access it through your navigator
- Node.js
- npm
- An active PostgreSQL instance
- Access the backend folder (
donsaude-technical-challenge/backend
) - Install packages with
npm ci
- Generate Prisma types with
npx prisma generate
- Create a
.env
file in the backend folder (see the environment variables below) - Run Prisma migrations with
npx prisma migrate deploy
- Build the code with
npm run build
- Start the server with
npm run start
- Open a new terminal and go to the frontend folder (
donsaude-technical-challenge/frontend
) - Install packages again with
npm ci
- Run the client with
npm run dev
- Wait until the frontend host address is exhibited in the console (probably
http://localhost:5173
) - Access it through your navigator
Click here to read the README file specifically about the backend side.
Click here to read the README file specifically about the frontend side.