- Store a virtual garden list of both their indoor and outdoor plants (CRUD)
- Sift through care tips for their particular plant. (via the Trefle API)
- Get WEATHER and CARE indications for outdoor plants (via the OpenWeatherMap API)
- @sdhani
Backend Developer - @Marjan154
Frontend Developer - @anumhsn
Frontend Developer - @benevolentPreta
Backend Developer, Heroku Schedule Jobs
- Clone this repository.
HTTP: git clone https://github.com/sdhani/PlantPal.git SSH: git clone [email protected]:sdhani/PlantPal.git - Run
yarn install-allin root directory. - Run
yarn start-allin root directory.
-
Create a local PostgreSQL DB (i.e.
createdb newDB). -
Create a .env file in the root directory, and add replace with your tokens.
DATABASE_URL = "url-link-to-newDB" TREFLE_TOKEN = "your-trefle-token" OWEATHER_TOKEN = "your-open-weather-token" SECRET_JWT = "your-secret-jwt-key" OWEATHER_UNITS = "preference for units (imperial, metric, or kelvin (default))" -
Add
require('dotenv').config();to the top of your knexfile.js for development.OPTIONAL.
- Run
knex migrate:latestin the root directory (note: if knex command is not found, you can runnpx knex migrate:latest).
- Run
knex seed:runin the root directory (note: see above regarding npx). - Run
yarn start-allin the root directory. - Open
http://localhost:3000in your browser to view seed data of all users.