group4-backend v2.1.1
Backend
API Docs
https://web2-p3-backend-grupo4.vercel.app/docs
API Endpoints
https://web2-p3-backend-grupo4.vercel.app/api/...
How to add to this project
To add a new route to this api you need to do the following: 1. Create a new file in the routers folder 2. Add the routes to the file 3. Add the new router to the appRouter in src/router
See the examples in /src/routers for more information
Setup
Before running make sure to add a .env file with the following variables:
DATABASE_URL=''
BASE_URL='localhost:3000'
and run the following commands:
npm install
npx prisma generate
Technologies used
- Typescript
- TRPc
- Prisma
- Fastify
- Zod
- Postgres
Commands
start in dev mode
npm run dev
start in vercel debug mode
npm run vercel-debug
seed
npm run db:seed
reset & seed
npm run db:reset
push schema to database
npx prisma db push
lint
npm run lint
prettier-format
npm run prettier-format
Links
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago