You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
1
+
# Getting Started with React Scheduler Component using MERN stack (MongoDB, Express, React, Node)
2
2
3
-
## Available Scripts
3
+
## Description
4
4
5
-
In the project directory, you can run:
5
+
This repository showcases a full‑stack sample application that demonstrates how to integrate the Syncfusion React Scheduler component into a React application with a Node.js and MongoDB backend.<br />
6
+
The backend provides REST API endpoints for managing calendar events, which are stored in MongoDB. The React frontend delivers a responsive scheduling interface, enabling users to create, update, view, and delete events seamlessly using Syncfusion’s Scheduler component.
6
7
7
-
### `npm start`
8
+
## Prerequisites
9
+
- Use Node Version >= 20.19.0 (for better performance with MongoDB driver 7.0)
10
+
- Use Latest MongoDB Software.
11
+
- Make sure there is nothing running on the ports 5000, 3000.
8
12
9
-
Runs the app in the development mode.<br />
10
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+
## Setup
14
+
- Clone the repository to your local machine.
11
15
12
-
The page will reload if you make edits.<br />
13
-
You will also see any lint errors in the console.
16
+
### Backend Setup
14
17
15
-
###`npm test`
18
+
#### <u> MongoDB </u>
16
19
17
-
Launches the test runner in the interactive watch mode.<br />
18
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
20
+
1. Create a Database named `mydb` in the default connection `localhost:27017` in MongoDB Compass.
21
+
2. Create a Collection named `ScheduleData` in the above created database.
22
+
3. Make sure this connection is in connected state in MongoDB Compass.
19
23
20
-
### `npm run build`
24
+
### Frontend Setup
25
+
1. In a new terminal, navigate to the project folder:
26
+
2. Install application dependencies:
27
+
```bash
28
+
npm install
29
+
```
21
30
22
-
Builds the app for production to the `build` folder.<br />
23
-
It correctly bundles React in production mode and optimizes the build for the best performance.
31
+
## Running the Application
32
+
1. Start the backend server:
33
+
```bash
34
+
npm run server (runs the server.js file)
35
+
```
36
+
2. Backend server started running on `http://localhost:5000`
37
+
3. Open another terminal from the same path, start the frontend:
38
+
```bash
39
+
npm start
40
+
```
41
+
4. Access the application by navigating to [http://localhost:3000](http://localhost:3000) in your web browser to view the output.
24
42
25
-
The build is minified and the filenames include the hashes.<br />
*Image illustrating the Syncfusion React Scheduler*
27
47
28
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29
-
30
-
### `npm run eject`
31
-
32
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33
-
34
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35
-
36
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37
-
38
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
48
+
## Troubleshooting
49
+
- **404 PageNotFound**: Ensure the backend server running on `localhost:5000`.
50
+
- **CORS errors**: Ensure the frontend running on `localhost:3000`.
39
51
40
52
## Learn More
41
53
42
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43
-
44
-
To learn React, check out the [React documentation](https://reactjs.org/).
54
+
To learn more about integrating Syncfusion React Scheduler [Syncfusion Documentation](https://ej2.syncfusion.com/react/documentation/schedule/getting-started).
0 commit comments