Plann.er is a project developed in TypeScript using Node.js with Fastify and Prisma as the ORM, connected to a SQL database.
The app is designed to help organize and plan trips, allowing users to create, confirm trips and invite their friends easily.
- Node.js
- TypeScript
- Fastify
- Prisma
- SQL
- Zod
To get started with Plann.er, follow these steps:
-
Clone the repository:
git clone https://github.com/lucasshira/planner.git
-
Navigate to the project directory:
cd planner
-
Install dependencies:
npm install
-
Set up environment variables. Create a .env file in the root of the project with the following content:
DATABASE_URL="file:./dev.db" API_BASE_URL="http://localhost:3333" WEB_BASE_URL="http://localhost:3000" PORT="3333"
-
Create the database migrations:
npx prisma migrate dev
-
Generate the Prisma client:
npx prisma generate
-
Start the development server:
npm run dev
-
Access the application at http://localhost:3333