8000 GitHub - jphamilton/core-vite-react: Hooking up ASP.NET Core, Vite, React and SignalR. JWT authentication thrown in just because. Just playing around.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Hooking up ASP.NET Core, Vite, React and SignalR. JWT authentication thrown in just because. Just playing around.

License

Notifications You must be signed in to change notification settings

jphamilton/core-vite-react

Repository files navigation

ASP.NET Core + Vite + React

Not a starter, just an exploration into hooking these things up, playing with features, syntax and semantics.

Includes:

  • ASP.NET Core v7 (JWT Authentication)
  • React v18 (Redux, React Router)
  • Vite (React, TypeScript + SWC template)
  • SignalR (with secure web sockets)

Notes just for me

Vite runs on port 3000 and proxies api and web sockets calls to the API on port 7200

Trusted development certificates

See Developing ASP.NET Core Applications with Docker over HTTPS

// Windows
dotnet dev-certs https

dotnet dev-certs https --trust

Docker

This will spin up a container and seed the database with the required tables for identity management.

docker compose -f docker-compose.postgres.yml up -d

pgAdmin will be available at http://localhost:7433. To add a new server, Host must match the service name. In this case, cvr-postgres. However, port should be the internal port 5432

To just run the whole thing from a container (in development mode)

docker compose up -d

About

Hooking up ASP.NET Core, Vite, React and SignalR. JWT authentication thrown in just because. Just playing around.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0