Based on the name taken from Apache Cassandra and COVID-19, Cossandra is a simple web application that records basic customer information. During the COVID-19 pandemic, with regulations from the government and initiatives for contact tracing, restaurants/bars in Jakarta, Indonesia started asking customers to fill out a form upon entry in order to record who's visited and notify these customers if anyone was found to test positive for COVID. Since some of these places relied on free tools that did not relationally store the information, the problem was that you had to fill out the same basic information each time you visited. This got repetitive.
Cosssandra was built to solve the above problem, and I used one of my favorite places in Jakarta, Coffeebeerian, as an example implementation of the solution.
There are several ways to run the Cossandra app, my favorite is with Docker because I don't like installing dependencies directly on my machine. This project already has a docker-compose.yml
that can be used. In your terminal, run the following commands:
- Create a
.env
file and set theDB_HOST
key value todb
which corresponds to the default database set in thedocker-compose.yml
file. docker-compose up
to build and pull the required Docker images and set up the instancedocker-run run web python manage.py migrate
to perform the needed database migrationsdocker-run run web python manage.py createsuperuser
to create a root user for the admin panel
That should be it. The app should be running at http://localhost:8000
.