StevonStevoff / ProjectParsnip

A IoT Project for Managing At-Home Smart Farming
3 stars 0 forks source link

Update Development with Major Backend Changes #52

Closed StevonStevoff closed 1 year ago

StevonStevoff commented 1 year ago

In these changes we have setup the main structure for the databse, and associated backend routes which manage them.

These routes include:

There is still additional work required on the routes, namely with Plants which is missing an implementation for the patch/delete routes, and for handling the growth properties associated with plant profiles (I am working on that now). That said this should provide a solid amount of content for the frontend team to be able to make some more progress with.

Instructions for running the backend can be found in the wiki. To access the API documentation, go to http://localhost:8000/docs, this will allow you to view the expected inputs/outputs and test the routes.

For routes that require authorization, you can login at the top of the page with the Authorize button.

Currently existing admin account: username: admin password: string

If you need to make a new admin account, they can either be created through an existing superuser, or you will have to edit the database directly to give them admin privilages.