Skip to content

UTNkar/event-calendar

Repository files navigation

event-calendar

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.

Getting Started (Not final)

  1. Install Nodejs and npm
  2. Install Python 3, at least version 3.6 or up.
  3. Install the following python packages:
    • python3-venv
    • python3-dev
    • build-essentials
    • libpq-dev
  4. Clone the repository.
  5. Run source ./source_me.sh to create a virtual environment.
  6. Run pip install --upgrade pip to make sure that pip is running the latest version
  7. Run pip install -r dev-requirements.txt
  8. Use cd src to enter the website directory.
  9. Run ./manage.py migrate to initialize the database.
  10. Run ./manage.py createsuperuser to create an admin user.
  11. 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)

Trouble shooting

You might need to restart your server and/or tailwind during initial setup in order for it to work correctly.