Skip to content

Ayushswirlon/Agro-mitra

Repository files navigation

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.

  1. Install Node.js and npm

Download and install Node.js from nodejs.org This will also install npm (Node Package Manager)

  1. Install Visual Studio Code

Download and install VS Code from code.visualstudio.com

  1. 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

  1. Open the project in VS Code

Open VS Code Go to File -> Open Folder and select the crop-care-ai folder

  1. Install additional dependencies

In the VS Code terminal, run:

npm install react-router-dom tailwindcss

  1. Set up Tailwind CSS

Initialize Tailwind:

npx tailwindcss init -p

  1. Install react-router-dom

In the VS Code terminal, run:

npm install react-router-dom

  1. 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

  1. 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.

  1. 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.