dhmit / self-sufficient-cities

An interactive mapping and timeline project about urban communities that grew their own food in the 20th century United States.
https://cities.dhlab.mit.edu/
5 stars 2 forks source link

Design and Implement Project Database #1

Closed MasterEchez closed 2 years ago

MasterEchez commented 2 years ago

We will design and implement a database for the project using DjangoDB models which will have many-to-many relationships for people, places, and events for our maps and timeline. It will be accessed by API to make it easier to get from the backend.

Minimum Viable Product:

Stretch Goals:

anastasia commented 2 years ago

MVP: For visualizing your db schema, please use https://django-extensions.readthedocs.io/en/latest/graph_models.html Django extension installation instructions: https://django-extensions.readthedocs.io/en/latest/installation_instructions.html You'll also need the pygraphviz package pip install pygraphviz Then: ./manage.py graph_models --pygraphviz -a -g -o my_project_visualized.png and you've got your visualization :-)

anastasia commented 2 years ago

Let's add some API endpoints to the MVP.

Let's also get some API endpoints for statistics:

How does that sound? We can talk about API design soon!

MasterEchez commented 2 years ago

Sounds good, I will update the original comment.

anastasia commented 2 years ago

🚀