planner

Plann.er is an application designed to help organize and plan trips, allowing users to create and confirm trips via e-mail.

Stars
1
Committers
2

Plann.er

Plann.er is a project developed in TypeScript using Node.js with Fastify and Prisma as the ORM, connected to a SQL database.

Overview

The app is designed to help organize and plan trips, allowing users to create, confirm trips and invite their friends easily.

Technologies Used

  • Node.js
  • TypeScript
  • Fastify
  • Prisma
  • SQL
  • Zod

Getting Started

To get started with Plann.er, follow these steps:

  1. Clone the repository:

    git clone https://github.com/lucasshira/planner.git
    
  2. Navigate to the project directory:

    cd planner
    
  3. Install dependencies:

    npm install
    
  4. 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"
    

Prisma Migrations

  1. Create the database migrations:

    npx prisma migrate dev
    
  2. Generate the Prisma client:

    npx prisma generate
    

Running the Project

  1. Start the development server:

    npm run dev
    
  2. Access the application at http://localhost:3333