AthenaFoss / Time-Managment-Tool

This project is for managing the time and prioritizing the task
6 stars 11 forks source link

time_managment_tool

This project is for managing the time and prioritizing the task

Setup Instructions

1. Fork & clone the Repository.

Fork the repository & clone the repository using -

git clone https://github.com/{your_github_username}/time_managment_tool.git

Instant Docker Setup

Note - Your docker-deamon should be online

Run the script for instant setup
# Give the permission to execute the setup file
chmod +x setup.sh

# Run the setup script file
docker-compose up

Traditional Setup

2. Install Dependencies

Open the time_management_tool directory in your preferred code editor or IDE.

Open a terminal for the directory, then run the following command in the terminal to install all the dependencies.

npm install

3. Configure Environment Variables

In the root of the directory, create a .env file by copying the .env.example file.

cp .env.example .env

In the .env file, set up the application environment and authentication routes.

NODE_ENV=development

4. Set Up Database (PostgreSQL)

You can use a cloud service like Neon or Supabase, or run a local instance with Docker -

docker run -d \
--name cms-db \
-e POSTGRES_PASSWORD=password_db \
-e  POSTGRES_DB=time_management  \
-p 5432:5432 \
postgres

Update the .env file with your PostgreSQL connection details -

DATABASE_URL=postgresql://postgres:password_db@localhost:5432/time_management

5. Generate the prisma client

npm run db:generate

6. Start the Application

Run the application in development mode -

npm run dev

Visit the application at -

http://localhost:3000

Other instructions

1. To add a new shadcn component, use the below command -

  npm run ui:add