SeedPlanterOrg / seedplanter-mobile

1 stars 0 forks source link

SeedPlanter - Gardening Application

Seedplanter is a gardening application that gives planters an all in one solution to journal, garden, and keep track of their plants

Screenshots

Image 1 Image 2 Image 3 Image 4 Image 5 Image 6 Image 7 Image 8 Image 9 Image 10 Image 11

Installation

Use the package manager npm to install dependencies.\ Download expo go

cd Frontend
npm install
cd ../Backend
npm install

Run

In order to run our application, you need to have expo and node installed.\ In the backend directory run the following commands

cd Backend
npm run devStart
cd ../Frontend
npx expo start

Frontend .env Example:

Add a .env in the following format in the /Frontend. Use EXPO_PUBLIC so that expo can read env variables.

EXPO_PUBLIC_PORT="3000"\ EXPO_PUBLIC_IP="http://10.0.0.12" (your IPv4)\ EXPO_PUBlIC_DEPLOYMENT="deployment.url"\ EXPO_PUBLIC_LOCALHOST="http://localhost"

example usage (no imports needed):

const PORT = process.env.EXPO_PUBLIC_PORT;

Backend .env Example:

Add a .env in the following format in /Backend folder.

PLANTDB_URL="mongodb+srv://user.your/mongo/url"\ OPENAI_API_KEY=""\ OPENAI_ORG_KEY=""\ JWT_SECRET="secret"\ PORT="3000"
IP="http://10.0.0.12" (your IPv4)\ DEPLOYMENT="deployment.url"\ LOCALHOST="http://localhost"

example usage:

require("dotenv").config();
const PORT process.env.PORT