farm-nestjs-api-development-setuo.mov
- Node v22 and NPM v11
nvm install 22.9.0
nvm use 22.9.0
npm install -g [email protected]- Clone repository
git clone [email protected]:AlexGalhardo/farm-nestjs-api.git- Enter repository
cd farm-nestjs-api/- Install dependencies
npm install- Setup your environment variables
cp .env.example .env- UP Docker with Postgres & API
sudo chmod +x setup.sh && ./setup.sh- The Server API will start Inside docker connecting to your local machine at: http://localhost:3000
- To Start Prisma Studio:
npm run prisma:studioa. Creating build
npm run buildb. Testing build server locally
npm run start- You can see and use the HTTP Requests references inside folder rest-client/
- OpenAPI Documentation (using Swagger)
a. Run all unit mocked tests
npm run test
b. Run all end to end tests
npm run test:e2e
Copyright (c) June 2025-present, Alex Galhardo