A web application that makes it easy for students to keep track of current events at campus Polacksbacken. The application is running a django backend and uses Tailwind for frontend purposes.
- Install Nodejs and npm
- Install Python 3, at least version 3.6 or up.
- Install the following python packages:
- python3-venv
- python3-dev
- build-essentials
- libpq-dev
- Clone the repository.
- Run
source ./source_me.sh
to create a virtual environment. - Run
pip install --upgrade pip
to make sure that pip is running the latest version - Run
pip install -r dev-requirements.txt
- Use
cd src
to enter the website directory. - Run
./manage.py migrate
to initialize the database. - Run
./manage.py createsuperuser
to create an admin user. - Open another terminal and run
./manage.py tailwind start
During development, you can run a test web server using ./manage.py runserver
.
IMPORTANT! When running commands you must be in the virtual environment (a.k.a. source source_me.sh
)
You might need to restart your server and/or tailwind during initial setup in order for it to work correctly.