A replacement for the current LASA High School website.
The project uses the flask framework for python. The comprehensive list of dependencies is available in requirements.txt.
Run everything inside a python virtual environment (venv): python -m venv flask
or python3 -m venv flask
if Python 3 is not the system default.
First, install your distribution's package for MySQL/MariaDB (using apt-get
, dnf
, pacman
, whatever). Then install all of the necessary python dependencies: flask/bin/pip3 install -r requirements.txt
First, install and set up the latest version of MySQL. The following are instructions for Debian linux:
-
Install the latest version of MySQL server and client:
sudo apt-get install mysql-server libmysqlclient-dev
-
When prompted, enter "password" as the MySQL root password, or otherwise change the SQLALCHEMY_DATABASE_URI in config.py to match your password.
-
Start the MySQL service:
sudo systemctl start mysql
-
Create a new database:
./db_create.py
-
Set up database migrations:
./db_migrate.py db init
To create a user that can log in and edit the website, run the following script:
./create_user.py harambe gorilla@cincinnatizoo.org neverforget123
where the three arguments are the username, email, and password, respectively.
To run an instance of the website in debug mode on localhost:5000: ./run.py
All files are released under the GNU AGPL (whose full text is located in the LICENSE file), with the following exceptions:
- lowpolybg.jpg is released into the public domain under the CC0 license.
- All database-related files, secret keys (for cryptographic purposes or otherwise), and passwords are not intended to be publicly available and thus may not be used for any purpose.
- Files relating to mascots/logos of LASA High School or Austin ISD may be covered under a seperate license. Please obtain advanced written permission from the appropriate entity before using them for any purpose.
Harrison Tran, Kevin Black, Ojas Ahuja
Schedules widget forked from the original by Oscar Newman.