-
Clone the repository by running the following command in the terminal :
$ git clone https://github.com/Beta-Persei/vaccination-slot-notifier.git
-
Create a virtual environment and activate it.
$ python -m venv env $ source env/bin/activate (Linux) $ env\Scripts\activate (Windows)
-
Install dependencies by running the following command:
$ pip install -r requirements.txt
-
Create a .env file using the .env.sample and add the required values
-
Run the Django standard runserver steps:
$ python manage.py migrate $ python manage.py runserver
Your website will be up and running at http://localhost:8000
Redis is used as a broker for celery.
- Install
$ sudo apt install redis-server
- Test
$ redis-cli ping PONG
Celery worker is used to send mails and other blocking tasks asynchronously.
celery -A vaccination_slot_notifier worker -l DEBUG
Used to run periodic tasks
celery -A vaccination_slot_notifier beat -l DEBUG