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.
- Register/log in
- Add plants with estimated watering and lighting requirements
- Edit plant general details
- Edit plant water and/or lighting requirements
- Delete a plant
- View all plants
- 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.
- Clone this repository to your machine.
- Create a new repository.
- Copy the connection string for your repo.
- From your project directory, execute the following commands
git remote remove origin git remote add origin <paste Github URL here>
- Push up the master branch to your new remote origin
- Create a branch named
initial-setup
. - Go into the project directory and set up your appsettings
cd Grow dotnet restore cp appsettings.json.template appsettings.json
- Open Visual Studio and has loaded the solution file
- 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": "*" }
Once your appsettings are updated and you've entered in some seed data, you should generate your database.
- Go to the Package Manager Console in Visual Studio.
- Use the
Add-Migration GrowTables
command. - Once Visual Studio shows you the migration file, execute
Update-Database
to generate your tables. - Use the SQL Server Object Explorer to verify that everything worked as expected.