This is an API project built with NestJS and Prisma.
Before you begin, you need to have Node.js and pnpm installed. If you don't have Node.js and pnpm installed, follow the instructions below to install them:
-
Install Node.js:
Download and install Node.js from the official website.
-
Install pnpm:
-
Clone the repository:
git clone https://github.com/VS-Lucas/V-Projects-API.git cd v-projects-api -
Install dependencies:
pnpm install
Before starting the project, set up the environment variables. Create a .env file in the root of the project and include the following:
DATABASE_URL="file:./dev.db"
JWT_SECRET="<your_jwt_secret>"
SERVER_PORT="3000"
FRONTEND_URL=""-
To reset and seed the database, execute:
npx prisma migrate reset
To start the project, use the following command in the terminal from the project's root directory:
pnpm run startHint:
To accelerate the development process (20 times faster), use the SWC builder by adding the -b swc flag to the start script, like this:
pnpm run start -- -b swcTo enable file-watching for automatic restarts on changes, use the following command:
pnpm run start:devAccess the project documentation at: