Skip to content
C# .NET web app to allow users to track their houseplants health and needs for water, light, etc.
C# HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
grow
.gitignore
README.md
grow.sln

README.md

Welcome to Grow!

Overview

Grow is my attempt to build an app that will help me track my houseplants. My husband got me a houseplant monthly subscription and it's been challenging to keep the plants alive and thriving! The goal with this app is to enter each of your plants, along with periodic updates to optimize the watering, lighting, and other needs of each plant.

Grow implements the Identity framework, and extends the base User object with the ApplicationUser model.

Grow ERD

ERD

Grow Functionality

App Screenshots

homepage homepage homepage homepage homepage homepage homepage homepage

App functionality

  1. Register/log in
  2. Add plants with estimated watering and lighting requirements
  3. Edit plant general details
  4. Edit plant water and/or lighting requirements
  5. Delete a plant
  6. View all plants
  7. View plants by watering requirements

As users notice a plant that is not thriving, they can update the plant's water and/or lighting requirements. The history of these changes is displayed on each plant detail, so a user can track and optimize each plant's needs.

Setup

Git and SQL Server Configuration

  1. Clone this repository to your machine.
  2. Create a new repository.
  3. Copy the connection string for your repo.
  4. From your project directory, execute the following commands
    git remote remove origin
    git remote add origin <paste Github URL here>
  5. Push up the master branch to your new remote origin
  6. Create a branch named initial-setup.
  7. Go into the project directory and set up your appsettings
    cd Grow
    dotnet restore
    cp appsettings.json.template appsettings.json
  8. Open Visual Studio and has loaded the solution file
  9. Once your IDE is running, you'll have to update your new appsettings.json file with the following content. Update to your SQL Server name.
    {
      "ConnectionStrings": {
        "DefaultConnection": "Server=YourServerHere\\SQLEXPRESS;Database=BangazonSite;Trusted_Connection=True;"
      },
      "Logging": {
        "LogLevel": {
          "Default": "Warning"
        }
      },
      "AllowedHosts": "*"
    }

Generating the Database

Once your appsettings are updated and you've entered in some seed data, you should generate your database.

  1. Go to the Package Manager Console in Visual Studio.
  2. Use the Add-Migration GrowTables command.
  3. Once Visual Studio shows you the migration file, execute Update-Database to generate your tables.
  4. Use the SQL Server Object Explorer to verify that everything worked as expected.
You can’t perform that action at this time.