This is a practice project for .Net Core and React.
A simple game that player can equip items and see their stats.
- React with Vite
- Authentication(JWT)
- Dockerized
Install dependencies
# server
$ cd dotnet6-vite
$ dotnet restore
# client
$ cd dotnet6-vite\Client
$ pnpm install
Generate the .env
file and add your DB connection string.
# server
$ cd dotnet6-vite
$ cp .env.example .env
The .NET Entity Framework Core tools (dotnet ef) are used to generate EF Core migrations, to install the EF Core tools globally.
$ dotnet tool install -g dotnet-ef
Run the following command from the project root folder to install the EF Core design package, it provides cross-platform command line tooling support and is used to generate EF Core migrations.
# server
$ cd dotnet6-vite
$ dotnet ef migrations add InitialCreate
$ dotnet ef database update
Generate https certificate before running the app.
# client
$ cd dotnet6-vite\Client
$ pnpm prestart
Run the app.
# server
$ cd dotnet6-vite
$ dotnet run watch
Build the docker image in the root of the project folder
$ docker build -t app:test .