An app to help make your garden a successful one.
Grow is an application that helps the user plan their garden for the season. There is a collection of plants for the user to choose from. The application will create a to-do list based on the plants chosen by the user. Tasks created will let the user know when to start seeding, when to water, when to harvest, and when plant is ready.
- Clone this repository.
- Run
npm i
to install all dependancies. - Make a local .env file by copying the env.sample file.
- In MySQL create a database.
CREATE DATABASE databasename;
- Fill in the
DATABASE_URL
with the connection URL to the database you created. - In terminal run
npx prisma migrate dev
to apply migrations to your database.
- Follow https://support.google.com/cloud/answer/6158849?hl=en to set up OAuth 2.0 for Google.
- For Authorized JavaScript origins put in the home URL to the application. Ex.
http://localhost:3000
- For Authorized redirect URIs put in the home URL follow by "/api/auth/callback/google". Ex.
http://localhost:3000/api/auth/callback/google
- Add a secret.
- In your local .env file fill in
GOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
.
- Fill in
NEXTAUTH_SECRET
andNEXTAUTH_URL
in your local .env file.
- You can quickly generate a secret using
openssl rand -base64 32
command.
- Visit https://perenual.com/docs/api
- Click on the "GET API KEY & ACCESS" button.
- In your local .env file fill in
NEXT_PUBLIC_PERENUAL_API_KEY
.
npm run dev