Skip to content

up1/workshop-dotnet-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop for CI/CD

  • Frontend with ReactJS
  • Backend with .NET 6

Backend with .NET 6

$dotnet run --project src/src.csproj

info: Microsoft.Hosting.Lifetime[14]
      Now listening on: https://localhost:7177
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://localhost:5070
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.

Access to APIs

Running .NET 6 with Docker

$docker-compose build backend
$docker-compose up -d backend
$docker-compose ps

NAME                          COMMAND             SERVICE             STATUS              PORTS
demo-dotnet-react-backend-1   "dotnet src.dll"    backend             running

Access to APIs

Frontent with ReactJS

$cd frontend
$npm install
$npm run dev

Access with url = http://localhost:5173/

Build with production

$npm run build

Deploy files and folders ./dist to web server such as NGINX

Running ReactJS with Docker

$docker-compose build frontend
$docker-compose up -d frontend
$docker-compose ps

NAME                          COMMAND             SERVICE             STATUS              PORTS
demo-dotnet-react-backend-1   "dotnet src.dll"    backend             running

Access with url = http://localhost:8888

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published