This project is an example of a simple React app using a .NET backend. This project is easy to use and set up by doing the following steps:
- Clone the repository with
git clone https://github.com/sethbr11/react-dotnet.git
in a terminal window. - Navigate inside the project folder and open another terminal window in the folder.
- In one of the terminal windows, enter the backend folder and run
dotnet run
to start the backend part of the application. - In the other terminal window, enter the frontend folder. From there, run
npm install
to install all the dependencies needed to run the application. - In the same frontend folder, run
npm run start
to start the frontend part of the application. It should automatically open a browser window to the application displaying a table which pulls data from the .NET backend.
In order to run this project, you will need .NET installed on your computer as well as Node. Make sure these are in place first.
This is just an example app for the development side of things only. This is not suitable for production environments as is.