Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MthreeProject

A time-tracking app with a React frontend and Flask backend.

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • MySQL

MySQL Setup

sudo apt install mysql-server
sudo mysql
CREATE DATABASE tasktimer;
CREATE USER 'tasktimer'@'localhost' IDENTIFIED BY 'tasktimer123';
GRANT ALL PRIVILEGES ON tasktimer.* TO 'tasktimer'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Backend

cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create backend/.env:

DB_HOST=127.0.0.1
DB_USER=tasktimer
DB_PASSWORD=tasktimer123
DB_NAME=tasktimer
JWT_SECRET_KEY=your_secret_key

Run migrations and start:

alembic upgrade head
python app.py

Frontend

cd Client/my-app
npm install
npm run dev

App runs at http://localhost:5173.

Admin Setup

To promote a user to admin or create a new admin account:

cd backend
source venv/bin/activate
python create_admin.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages