The project is structured into frontend and backend components:
The backend is built using Python and Flask framework. It handles the business logic, data management, and API endpoints.
backend/: Contains all backend files. init.py: Initializes the package. app.py: Flask application defining API endpoints. main.py: Main script for running the auction system through CLI. auction_system.py: Manages auction operations using classes and functions. event.py: Defines the Event class and related functions. member.py: Defines the Member class and related functions.
The frontend is implemented using HTML, CSS, and JavaScript. It provides a user interface to interact with the auction system.
frontend/: Contains all frontend files. static/: Static assets. css/: Contains styles.css for styling. js/: Contains scripts.js for handling frontend logic. templates/: Contains index.html as the main HTML template. Virtual Environment venv/: Virtual environment (optional but recommended).
Python 3.7 or higher installed. Flask framework (flask package) installed. Web browser (Google Chrome, Mozilla Firefox, etc.).
Installation
- Clone the repository:
git clone https://github.com/Anuradha-Naidu/Reward-Bidding-Frontend.git
- Set up a virtual environment (recommended):
python -m venv venv
source venv/bin/activate
On Windows use venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Backend Navigate to the backend directory:
cd backend
Run the Flask application:
python app.py
This will start the backend server at http://localhost:5001. or 5000 (check once on your local server)
- Frontend Open another terminal window/tab. Navigate to the frontend directory:
cd frontend
Open index.html in a web browser directly or use a web server like Python's built-in server:
python -m http.server
Then, open http://localhost:8000 in your web browser.
1.The frontend provides forms to add members, add events, register members for events, submit bids, and declare winners. 2. Fill out the forms and submit data to interact with the auction system.