To run the Indian Spice Hub application, you need to ensure that you have the following installed:
- React.js
- Go
- MongoDB server
- Fiber
-
Initialize Backend Data:
- In the
datafolder, you'll find initial data required for the backend. Import this data into your MongoDB database. - Create an
.envfile in the backend folder and set the database URL:URL=your_database_url_here
- In the
-
Run Backend Server:
- Open a command prompt in the backend folder.
- Execute the following command to start the backend server:
go run main.go
-
Start Frontend Server:
- Open a new command prompt in the frontend folder.
- Install the required Node.js modules:
npm install - Start the React server:
npm start
-
Accessing the Application:
- Once both backend and frontend servers are running, access the Indian Spice Hub in your browser at http://localhost:3000.