Real Life Web Apps with Robyn

Batman was tasked with building a web application to manage the crime data in Gotham City. The application would allow the Gotham police department to store and retrieve data on criminal activities, suspects, and their locations. He decided to use the Robyn web framework to build this application efficiently and quickly.

You can find the source code for this application here.

Installing Robyn

The first step was to install Robyn. Batman created a virtual environment and installed Robyn using pip.

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install robyn

Creating a Robyn Application

Batman wanted to create a Robyn app and was about to create an src/ before he was told that Robyn comes with a CLI tool to create a new application. He ran the following command to create a new Robyn application.

$ python -m robyn --create

This, would result in the following output.

$ python3 -m robyn --create
? Directory Path: .
? Need Docker? (Y/N) Y
? Please select project type (Mongo/Postgres/Sqlalchemy/Prisma):
 No DB

and the following directory structure.

Batman was asked a set of questions to configure the application. He chose to use the default values for most of the questions.

And he was done! The Robyn CLI created a new application with the following structure.

├── src
├── Dockerfile