Skip to content

KonstantinTheRed/makeUC2022

Repository files navigation

Arcata

APM GitHub Workflow Status

Scaling a garden can be tricky. Many crops tend to thrive under conditions unique to them; some may require certain soil nutrients, or to be watered more or less frequently than others. Arcata is a garden management solution that provides a minimal interface for managing your plants. By integrating with 3rd party APIs and external datasets, Arcata provides users with neat facts on the plants in their garden, and bundles them in a clean visualization so users can show off their gardens.

Stack

Client: React, NextJS

Server: Rust, Rocket, Diesel, PostgreSQL

Run Locally

Dependencies (see setup below)

  • Docker
  • Rust
    • diesel_cli

Clone the project

git clone https://github.com/konstantinvvictoria/makeUC2022

Go to the project directory

cd makeUC2022

With the Docker daemon running, start the PostgreSQL instance

docker-compose up

Visit rustup.sh to download Rust if you don't already have it installed, then install the diesel-cli to run our database migrations:

cargo install diesel_cli@1.4.1 --no-default-features --features postgres

Run initial DB migrations (from root directory)

diesel migration run --database-url postgresql://postgres:example@localhost:5432/postgres

Start the backend API

cd backend/ && cargo watch -x run

API Reference

See the SQL Schemas to see the data format PostgreSQL format

POST Schemas

#[derive(Insertable, Deserialize)]
#[table_name = "users"]
pub struct NewUser {
    pub uid: String,
    pub username: String,
}

#[derive(Insertable, Deserialize)]
#[table_name = "plants"]
pub struct NewPlant {
    pub uid: String,
    pub symbol: String,
    pub sci_name: String,
    pub gener_name: String,
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors