Skip to content

ilkelatifoglu/PoolManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important Note: Don't forget to add JWT_SECRET to your backend .env file

Pool Management System

Project Setup

Backend Setup

  1. Create and activate virtual environment:
cd backend
python -m venv venv

# on Mac/Linux
source venv/bin/activate

# on Windows
venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create .env file in backend directory including the following variables:
MYSQL_HOST=your_rds_host
MYSQL_USER=your_rds_username
MYSQL_PASSWORD=your_rds_password
MYSQL_PORT=your_rds_port
MYSQL_DATABASE=pool_management
JWT_SECRET=your_jwt_secret
MAIL_USERNAME=your_gmail_address
MAIL_PASSWORD=your_gmail_app_password
MAIL_DEFAULT_SENDER=Pool Management <your_gmail_address>
FRONTEND_URL=http://localhost:3000
  1. Run Flask server:
flask run --debug -p 3001

Server will run on http://localhost:3001

Frontend Setup

  1. Install dependencies:
cd frontend
npm install
  1. Create .env file in frontend directory including the following variables:
REACT_APP_API_URL=http://localhost:3001/
  1. Start development server:
npm start

Frontend will run on http://localhost:3000

Project Structure

PoolManagement/
├── backend/                      # Python Flask server
│   ├── database/                # Database configurations and models
│   │   ├── queries/            # SQL query templates and database operations
│   │   └── schemas/            # Database table definitions and migrations
│   ├── routes/                  # API endpoint definitions
│   ├── services/                # Business logic and data processing
│   ├── utils/                   # Helper functions and utilities
│   ├── app.py                   # Main application entry point
│   ├── requirements.txt         # Python dependencies
│   └── .env                     # Backend environment variables
└── frontend/                    # React application
    ├── public/
    ├── src/                     # React source code
    │   ├── components/
    │   ├── pages/
    │   ├── services/
    │   ├── utils/
    │   ├── App.js
    │   └── index.js
    ├── package.json             # Node.js dependencies and scripts
    ├── package-lock.json
    └── .env                     # Frontend environment variables

Important Notes

  • Always activate virtual environment using source venv/bin/activate on Mac/Linux or venv\Scripts\activate on Windows when working on backend
  • Run both frontend and backend servers during development

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5