To set up your development environment for the Garden Planner project, follow these steps:
-
Clone the Repository:
git clone [repository-url] cd GardenPlanner
-
Install Dependencies:
- Backend:
cd server npm install
- Frontend:
cd client npm install
- Backend:
-
Environment Variables:
- Create a
.env
file in the root of theserver
directory based on the.env.example
template. - Ensure all required variables are set, such as
DB_HOST
,DB_USER
, andJWT_SECRET
.
- Create a
-
Database Setup:
- Run the database schema and seed files to set up your development database.
-
Start the Application:
- Backend:
npm run dev
- Frontend:
npm start
- Backend: