A Django web application to fetch and display football statistics (Goals Per Game) from a football API, using MongoDB via MongoEngine as the database.
- Python 3.12+
- MongoDB (running locally or remotely)
pippackage manager- Virtual environment tool (
venvorvirtualenvrecommended)
-
step: Clone the repository or open zip-file
-
Create and activate a virtual environment: python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies: pip install -r requirements.txt
-
Start MongoDB Make sure MongoDB is running locally on default port 27017:
brew services start mongodb-community
mongod --config /usr/local/etc/mongod.conf
net start MongoDB
- Run the Django development server: python manage.py runserver
Open browser and visit: http://127.0.0.1:8000/