Hii! Team Alpha2 this is the Readme.md file that contains all of the required steps for setup your enviorment for our project CropCare Ai
note- If you have already setup your environment and clone repository from github, you need to follow the instructions from 5th step onwards.
- Install Node.js and npm
Download and install Node.js from nodejs.org This will also install npm (Node Package Manager)
- Install Visual Studio Code
Download and install VS Code from code.visualstudio.com
- Create a new React project
Open a terminal or command prompt Navigate to the directory where you want to create your project Run the following command to create a new React project:
npx create-react-app crop-care-ai
This will create a new folder called crop-care-ai with a basic React project structure
- Open the project in VS Code
Open VS Code Go to File -> Open Folder and select the crop-care-ai folder
- Install additional dependencies
In the VS Code terminal, run:
npm install react-router-dom tailwindcss
- Set up Tailwind CSS
Initialize Tailwind:
npx tailwindcss init -p
- Install react-router-dom
In the VS Code terminal, run:
npm install react-router-dom
- Run the development server
In the VS Code terminal, run:
npm start
This will start the development server and open your app in a browser
- Continue development
You can now continue adding more components and pages to your project Use the Homepage component as a starting point for your home page.
- Building for production
When you're ready to deploy, run:
npm run build
This will create a build folder with your production-ready files
Remember to commit your changes regularly using Git, and consider using a platform like GitHub for version control and collaboration.