This is a web application to display statistics for the game BattleBit Remastered. This project uses Angular for the frontend, Django for the backend, and PostgreSQL for the database, with Docker to manage the environment.
-
Clone the repository:
git clone https://github.com/yourusername/battlebit-remastered-stats.git
-
Navigate into the cloned repository:
cd battlebit-remastered-stats
-
Copy the
.env.example
file to.env
and fill it with the necessary information:cp .env.example .env
Then, open the
.env
file and set the values for the variables:POSTGRES_DB=your_database POSTGRES_USER=your_user POSTGRES_PASSWORD=your_password DJANGO_SECRET_KEY=your_secret_key CELERY_RESULT_BACKEND='db+postgresql://your_user:your_password@localhost/your_database'
Please replace
your_database
,your_user
,your_password
, andyour_secret_key
with the appropriate values for your setup. -
Build and start the Docker containers:
docker-compose up --build
This will start three services:
- A Django API server running on http://localhost:8000
- An Angular server for the frontend running on http://localhost:4200
- A PostgreSQL server for the database
-
You can stop the Docker containers at any time by pressing
Ctrl+C
in the terminal where you randocker-compose up
, or by runningdocker-compose down
in another terminal.
Contributions are welcome! Please feel free to submit a Pull Request.