Welcome to the Garden Loft Smart Home App! This app provides a user interface for managing smart home devices.
Follow these steps to install and run the app on your local machine:
git clone https://github.com/whimsical-phoenix/gardenLoft.git
cd garden-loft-app
npm install
cd server
npm install
Make sure you are in the just-for-us folder
npm start
The app will be accessible at http://localhost:3000/.
nodemon Server/server.js
The server will be accessible at http://localhost:3001/.
- Node.js: Ensure that you have Node.js installed. You can download it from https://nodejs.org/.
src/: Contains the source code for the React application. public/: Contains static assets and the HTML template. server/: Contains the server-side code.
Before starting your work, make sure you have the latest changes from the main repository:
# Ensure you are on the main branch
git checkout main
# Fetch the latest changes
git pull origin main
Create a new branch for your feature or bug fix:
# Create a new branch
git checkout -b feature/your-feature
Make your changes and commit them:
# Add your changes
git add .
# Commit your changes
git commit -m 'Add some feature'
If there were changes in the main repository while you were working, fetch them to keep your branch up to date:
# Fetch updates from the main repository
git fetch origin main
If there are conflicting changes, Git will inform you. Resolve the conflicts in your code and commit the changes:
# Resolve conflicts in your code
# (Edit the conflicted files to resolve conflicts)
# Add the resolved changes
git add .
# Commit the resolved changes
git commit -m 'Resolve merge conflicts'
Push your changes to the repository:
# Push changes to your branch
git push origin feature/your-feature
Open a pull request on GitHub:
- Navigate to the repository on GitHub.
- Switch to the branch containing your changes.
- Click on "Pull Request" and follow the instructions. Other developers will review your changes, and once approved, your contribution will be merged into the main repository.
Thank you for contributing to Garden Loft Smart Home App!
This project is licensed under the MIT License.