Skip to content

AlbertHytten/DIS-projekt-APO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIS Project APO - Football League Management System

Prerequisites

  • Python 3.x
  • Node.js and npm
  • PostgreSQL

Quick Setup

1. Database Setup

# Create database
psql -U postgres
CREATE DATABASE "APOdb";
\q

# Initialize schema
psql -U postgres -d APOdb -f db/init/init.sql

2. Backend Setup

cd backend
pip install -r requirements.txt
cp .env.example .env

Edit .env with your PostgreSQL password:

DB_NAME=APOdb
DB_USER=postgres
DB_PASSWORD=YOUR_PASSWORD_HERE
DB_HOST=localhost
DB_PORT=5432

3. Frontend Setup

cd frontend
npm install

Running the Project

Terminal 1 - Backend:

cd backend
python app.py

Backend runs on http://127.0.0.1:5001

Terminal 2 - Frontend:

cd frontend
npm run dev

Frontend runs on http://localhost:5173

Access

Open your browser and go to http://localhost:5173

Troubleshooting

  • Ensure PostgreSQL is running: brew services start postgresql
  • Verify database credentials in .env file
  • Check both backend and frontend are running on correct ports

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •