HORC-Elections is a web application designed for conducting elections within the HORC (House of Representatives Council) community. This README provides instructions for developers on how to set up and run the project, as well as important information about the project's architecture and environment variables.
To get started with the project, follow these steps:
-
Clone the repository to your local machine using the following command:
git clone https://github.com/DaemonLab/HORC-Elections
By default, SQLite is used as the database during development. You can run the project with this configuration. However, for production, you should configure a more robust database like MySQL or PostgreSQL.
You have two options for running the project: using standard Django management commands or Docker Compose.
To run the project using standard Django management commands, follow these steps:
-
Navigate to the project directory in your terminal.
-
Apply the database migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Access the application in your web browser at
http://localhost:8000
.
To run the project using Docker Compose, make sure you have Docker and Docker Compose installed. Then, follow these steps:
-
Navigate to the project directory in your terminal.
-
Create a
.env
file in the project directory and configure the necessary environment variables. You can use the provided.env.example
file as a template. -
Build and start the Docker containers:
docker-compose up
-
Access the application in your web browser at
http://localhost:8000
.
To configure your project's environment variables, create a .env
file in the project directory or set the necessary environment variables manually. You can use the .env.example
file as a reference for the required variables.
Ensure that your environment variables are correctly set for your specific development or production environment.
Below is the project schema for better understanding:
Feel free to reach out to the project maintainers for any further assistance or inquiries.