code4romania / seismic-risc

Web app for keeping track of buildings in danger of collapsing in the event of an earthquake
https://seismic-risc.vercel.app/
Mozilla Public License 2.0
34 stars 65 forks source link

Implement Django REST framework #58

Closed tudoramariei closed 4 years ago

tudoramariei commented 4 years ago

To have a more streamlined communication between front-end and back-end, a better, more flexible API should be created to handle the information

tudoramariei commented 4 years ago

Assigned to @danniel

andreisima commented 4 years ago

API Repo Thoughts?

The Django App is customized to run on my old-established env: Postgres running inside docker. Python inside virtual env OS Ubuntu 18 LTS

This version is different from the data model point of view. I am using an extra field taken form GeoDjango for creating a GeoPoint. This will be used in trimming the Postgres search time when searching for points in a specified radius zone.

In the future, I guess I can provide docker-compose file for building all environment Django+Gunicorn (supervisor maybe) Feature -> ?? Django Channels for socket messaging & Redis vs MQTT as a broker layer ??? Postgres Nginx

RaduCStefanescu commented 4 years ago

Hi @andreisima Thank you for the contribution.

To make it easier for us to follow your changes, how about opening a Pull Request with the changes in your branch?

andreisima commented 4 years ago

Hi @RaduCStefanescu I will read your PR rules, and see what PEP rules you are following. Then I will open a PR