Project showcases React.js frontend UI consuming data from the i-memory/sql database which communicates using .Net Core by exposing Web Api endpoints (for Json output) supplemented by entity framework scaffolded models
Pre-requisites:
- .Net Core 2.2 SDK
- Visual Studio Code or Recommended - Visual Studio Community editon version 15.9.1 or later editor
Clone the current repository locally as
git clone https://github.com/NileshSP/ReactJsAspnetEFCodeFirstSql.git
Steps: using Visual Studio community edition editor
- Open the solution file (ReactJsAspnetEFSqlSln.sln) available in the root folder of the downloaded repository
- Await until the project is ready as per the status shown in taskbar which loads required packages in the background
- Hit -> F5 or select 'Debug -> Start Debugging' option to run the project
Steps: using Visual Studio code editor
- Open the root folder of the downloaded repository
- Await until the project is ready as per the status shown in taskbar which loads required packages in the background
- Open Terminal - 'Terminal -> New Terminal' and execute commands as
cd ReactJsAspnetEFSql
&dotnet build
&dotnet run
sequentially OR- Hit -> F5 or select 'Debug -> Start Debugging' option to run the project
Once the project is build and run, a browser page would be presented with navigation options on right wherein 'Websites data' option contains functionality related to data access from in-memory/sql database
- ReactJsAspnetEFSql folder: contains frontend UI built using React.js(in ClientApp folder) and .Net Core Web Api endpoints
- ReactJsAspnetEFSqlTests folder: unit tests for Web Api Endpoints
- ReactJsAspnetEFSqlSln.sln solution file
- Readme.md file for project information