- Duration: Solo Project Challenge 2.5 Weeks
A mobile forward web app where plant lovers can track their plant's growth, get watering notifications, and store info and progress photos in a single place.
- username: guest_user
- password: guest_user
- go ahead an take a look around, make some edits, or add a new plant.
- if you like the app go ahead and register as a new user and get started today!
- HTML
- JS
- REACT
- REDUX
- SAGA
- MUI
- NODE
- EXPRESS
- AXIOS
- SQL
Before you get started, make sure you have the following software installed on your computer:
-
Create a database named
houseplant_palace
-
Run the queries from
database.sql
on thehouseplant_palace
database -
The queries in the tables.sql file are set up to create all the necessary tables and populate the needed data to allow the application to run correctly. The project is built on Postgres, so you will need to make sure to have that installed. We recommend using Postico to run those queries as that was used to create the queries,
-
Open up your editor of choice and run an npm install
-
Run npm run server in your terminal
-
Run npm run client in your terminal
-
The npm run client command will open up a new browser tab for you!
If you would like to name your database something else, you will need to change houseplant_palace
to the name of your database name in server/modules/pool.js
- Run
npm install
- Create a
.env
file at the root of the project and paste this line into the file:While you're in your newSERVER_SESSION_SECRET=superDuperSecret
.env
file, take the time to replacesuperDuperSecret
with some long random string like25POUbVtx6RKVNWszd9ERB9Bb6
to keep your application secure. Here's a site that can help you: https://passwordsgenerator.net/. If you don't do this step, create a secret with less than eight characters, or leave it assuperDuperSecret
, you will get a warning. - Start postgres if not running already by using
brew services start postgresql
- Run
npm run server
- Run
npm run client
- Navigate to
localhost:3000
Directory Structure:
src/
contains the React applicationpublic/
contains static assets for the client-side like plant imagesbuild/
after you build the project, contains the transpiled code fromsrc/
andpublic/
that will be viewed on the production siteserver/
contains the Express App