This is the repo for the Sunnyside Mutual Aid Website.
===========================================================================
- Web: Django
- Django is an open source Python-based web framework for rapid development.
- Tutorial: https://www.tutorialspoint.com/django/index.htm
-
WSGI: Gunicorn
-
DB: PostgreSQL
- PostgreSQL is an open source Relational Database System.The DB is primarily accessed through Django.
- Tutorial: https://www.tutorialspoint.com/postgresql/index.htm
- Tutorial (Django and DBs): https://www.tutorialspoint.com/django/django_models.htm
-
Web Server: nginx
-
Certificate renewal: certbot
-
Containerization: Docker and Docker Compose
- Front-end: Bootstrap, Font-Awesome
- Bootstrap tutorial: https://www.w3schools.com/bootstrap4
- Font-Awesome tutorial: https://www.w3schools.com/icons/fontawesome5_intro.asp
=========================================================================== The development environment is slimmed down to 2 containers:
- Web
- DB
It uses Django's manage.py for WSGI, and runs on localhost:8000
===========================================================================
- Clone/Download this repo.
- Install Docker and Docker Compose.
- Run
docker-compose up -d --build
- Go to localhost:8000 in your web browser.
That's it! All the HTML pages are in project/website/templates/
directory. To add new pages, please add them here and update urls.py.
Static content goes in the project/static/
directory, and is collected when you run
docker-compose up -d --build
ordocker-compose exec web python manage.py collectstatic --no-input