git clone https://github.com/kauefraga/petshop-server.git
cd petshop-server
pnpm ci
pnpm dev
You are welcome to open issues and pull requests!
PORT
: it's used by our http server to listen at (default: 3333)DATABASE_URL
: needed to connect to the database- ex.: postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=public
POSTGRES_PASSWORD
: password that postgres requires
- Cuid2 - Secure, collision-resistant ids optimized for horizontal scaling and performance. Next generation UUIDs.
- Fastify - An efficient server implies a lower cost of the infrastructure, a better responsiveness under load and happy users. Framework based on plugins.
- @fastify/cors - Allows you to control who can access your Fastify application.
- @fastify/rate-limit - Controls the request rate limit of your API.
- Prisma - The best ORM for Typescript.
- Typescript, tsx and tsup - Improve the DX by adding type safety and a blazingly fast execution/build provided by esbuild
- Docker - Use virtualization/containerize to turn your "work on my machine" into "our machine".
This project is licensed under the MIT License - See the LICENSE for more information.