Scaffold react with ASP .NET Core boilerplate
npm install create-rwcA starter template for building modern web applications with ASP.NET Core (backend) and React (frontend).
⨠This boilerplate provides a pre-configured setup for full-stack development, bundling, and deployment
šø Prerequisites
- .NET 8 SDK
- Node.js (>20.0.0 LTS recommended)
- A package manager: npm - usually installed with node installation
šø Installation - this command will create a project in target folder with provided name
``bash`
npx create-rwc@latest
šø Options: and for quick actions
`bash
npx create-rwc@latest -n
Options:
-n or --name Project name
-o or --open Open project with selected IDE
-i or --install Run npm install after scaffolding
-g or --git Initialize a git repo
-f or --force Overwrite non-empty target directory
-h or --help Show help
`
šø Usage: from root
`bash`
dotnet runhttps://localhost:PORT
This will:
- Start the ASP.NET Core backend on
- Start the React dev server (proxied through .NET Core)
`md``
āāā projectName.Client
āāā nested
āāā public
āāā src
āāā nested
āāā assets
āāā App.css
āāā index.css
āāā App.jsx
āāā main.jsx
āāā projectName.esproj
āāā index.html
āāā package.json
āā vite.config.js
āāā projectName.Server
āāā nested
āāā Controllers
āāā Properties
āāā projectName.csproj
āāā projectName.csproj.user
āāā projectName.http
āāā appsettings.json
āāā appsettings.development.json
āāā Program.cs
āā WeatherForecast.cs
āāā projectName.sln
##
- @mmnagueb - Mostafa Nagueb