Welcome to the KARTING-ACADEMY project. This project is designed to help manage and organize karting activities. Follow the instructions below to set up and run the project on your local machine.
Welcome to the KARTING-ACADEMY project. This project is designed to create a platform for managing and organizing karting activities. Whether you're a karting enthusiast, an instructor, or a track owner, KARTING-ACADEMY aims to streamline the management of karting events, memberships, and more.
Follow these steps to set up the project on your local machine:
-
Clone this repository to your computer:
git clone https://github.com/Maksim-Volosh/KARTING-ACADEMY.git
-
Navigate to the project directory:
cd KARTING-ACADEMY
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
-
Install the requirements:
pip install -r requirements.txt
-
Create config file -
config.py
in main directoryAnd in this file add:
SECRET_KEY = "ANY SECRET KEY"
- Your secret key can be any characters, for example - 'slgsldfkwhiutyfwbx3-=^%#*c3487'
-
Make migrations and migrate the database:
python manage.py makemigrations python manage.py migrate
-
Run the server:
python manage.py runserver
Once the server is running, open your web browser and navigate to http://127.0.0.1:8000
to view the application.
How to add events or players??
-
Create an superuser 'Admin user'
python manage.py createsuperuser
-
Run the server:
python manage.py runserver
-
Go to
http://127.0.0.1:8000/admin
- And login using a previously registered user
Congratulations!! You have successfully getting permission to access the admin panel
If you are working on the front-end part of the project, here's where you'll find the relevant files:
- HTML Templates: Front-end HTML files are located in the
templates
directory. - JavaScript Files: Front-end JavaScript files can be found in the
static/js
directory. - CSS Stylesheets: Front-end CSS files are located in the
static/css
directory. - Images and Assets: Images and other static assets are stored in the
static/img
directory.
Make sure to coordinate with the back-end developers regarding any dynamic content or data integration needed in your HTML templates.
By following the above instructions, you should be able to set up and run the KARTING-ACADEMY project on your local machine. If you encounter any issues or have any questions, please feel free to open an issue in the repository. Happy karting!