Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

arxitim/abstract_anticafe

Repository files navigation

Abstract anticafe

License: GPL v3

This project is a web service for booking tables in public places: anti cafes, coworkings, cafes, restaurants, hookah houses, etc.

The style of web service is minimalism. No garbage content like rating system, useless buttons "Share" (who uses them at all), comments from inadequate people, buttons "start a chat with the manager"... In short, only booking tables and nothing else.

Registration is available, so you can follow your bookings from your personal cabinet. You can also delete your bookings)


Core app

This application contains most of the server logic. Main page rendering: home page, registration page, login page, detailed information about the table, table order page, page with a list of all bookings and ect.

Main Page
Main Page (Mobile)
Page for booking
Registration with recaptcha (yeah, I know how to recaptcha, yo)
Page with bookings
Successful deleting

SQL scheme for Core

core_sql scheme


Staff app

He comes to the place, shows qr-code to the employee with the rights is_staff, he follows the link in qr and the reservation is considered confirmed, and the table occupied is_busy = True.

Сlient Qr-code
What happens if an employee clicks on the link

API

Small API mainly for working with ajax


Redis + Celery

Used to clear a queue of orders that are no longer relevant. Also emulates the visit of random people so that the status of the table changes to busy (table.is_busy = True).


Deploy

Deploy is made by nginx+gunicorn and Certbot for HTTPS. I was in charge of the configuration of the server myself, and since I don't know much about security issues, it can be dangerous :3


Special thanks to @mitchtabian for his Youtube lectures about Django.