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 generateTechnologies used
- Typescript
- TRPc
- Prisma
- Fastify
- Zod
- Postgres
Commands
start in dev mode
npm run devstart in vercel debug mode
npm run vercel-debugseed
npm run db:seedreset & seed
npm run db:resetpush schema to database
npx prisma db pushlint
npm run lintprettier-format
npm run prettier-formatLinks
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