A full-stack Pomodoro timer application built with Next.js. This project helps users manage their time using the Pomodoro technique, allowing them to focus and take breaks effectively.
The backend of the application uses server actions
and the Prisma
ORM for database operations.
-
Clone the repository:
git clone https://github.com/mouaammou/pomodoro-plus.git cd pomodoro-plus
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root of your project. Add the following environment variables:echo DATABASE_URL=file:database.db > .env
-
Migrate Prisma: This will create the necessary tables and columns in the database based on the Prisma schema defined in the prisma directory.
npx prisma migrate dev --name init
-
Run the app:
npm run dev
-
Open the app in your browser: Go to http://localhost:3000.
The project structure is as follows:
lib
: Contains prisma client.prisma
: Contains the Prisma configuration and database schema files.src
: Contains the source code of the application.components
: Contains reusable React components used in the application.app
: Contains the main application logic and components.actions
: Contains action files and types.