Created by Nathan Perrier of Ambrose Treacy College
This is a blogging website for ATC, created as part of the Y11 FA3 project.
Follow these steps to set up and run the project:
-
Allow the execution of scripts for the current user:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
-
then create the virtual environment using:
python -m venv venv
-
active the virtual environment using:
.\venv\Scripts\activate
-
install dependencies to venv, using:
python3 -m pip install -r requirements.txt
-
create a file called .env and include:
SECRET_KEY = 'your_secret_key' OPENAI_API_KEY = 'your_api_key' GOOGLE_API_KEY = 'your_google_key' GMAIL_SECRET_KEY = 'your_gmail_secret_key' GMAIL_SENDER_EMAIL = 'your_gmail_for_sending_emails' GMAIL_ADMIN_EMAIL = 'recipient_gmail_for_tickets'
-
Run the website using:
python3 -m run.py
The project is structured as follows:
backend/
: Contains the backend Python code.frontend/
: Contains the frontend HTML, CSS, and JavaScript code.requirements.txt
: Lists the Python packages that the project depends on.run.py
: The entry point to the application.
If you want to contribute to this project, please fork the repository, make your changes, and open a pull request.
This project is licensed under the terms of the MIT license. See the LICENSE file for the full license text.