Right Plant Right Place Right Time implementation using React and Django: https://rightplant.biospherecapital.com/ Exported from gitlab.catalyst.net.nz on 2024-12-18
Find a file
Dana Lambert bb307d34d2 Add django rest framework and basic plant model
- Adds django rest framework to requirements
- Adds basic plant model with id and name fields
- Adds CRUD endpoints to interact with plant objects
2021-10-07 08:59:57 +13:00
backend Add django rest framework and basic plant model 2021-10-07 08:59:57 +13:00
database Add database initialisation scripts 2021-10-06 14:37:14 +13:00
frontend Setup frontend styling 2021-10-06 16:18:01 +13:00
docker-compose.yaml Add database initialisation scripts 2021-10-06 14:37:14 +13:00
README.md Add development environment documentation to README 2021-10-06 14:53:51 +13:00

RightTree

Right Plant Right Place Right Time implementation using React and Django.

Running application for development

Initial Setup

Before running the applications please ensure the following prerequisites have been met.

Software

Most applications in this repository are built using Docker which resolves many dependencies but you will require a local installation of git, docker and docker-compose.

$ sudo apt install git docker-compose

To install docker, follow the official installation documentation. Instructions are also available for docker-compose.

Initialise database

Creates right_tree database and installs postgis extensions.

chmod +x ./database/init_database.sh
./database/init_database.sh

Initial build

Builds the Django backend docker image. This may need to be re-run if any new dependencies are added.

docker-compose build

Run web application

Starts up the applications including the frontend, backend and database.

docker-compose up

Once running the components can be accessed as follows:

Application Hosted
React Frontend http://localhost:3000
Django Backend http://localhost:8000
Database postgis://localhost:5432