Chia1104 / dotnet6-vite

A simple game that player can equip items and see their stats.

Home Page:https://dotnet6-vite-production.up.railway.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotnet 6 and React with Vite Practice

This is a practice project for .Net Core and React.

A simple game that player can equip items and see their stats.

Deployments

Language and Tools

Features

  • React with Vite
  • Authentication(JWT)
  • Dockerized

Get Started

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 .

About

A simple game that player can equip items and see their stats.

https://dotnet6-vite-production.up.railway.app/


Languages

Language:TypeScript 64.0%Language:C# 31.8%Language:CSS 2.1%Language:JavaScript 1.6%Language:Dockerfile 0.3%Language:HTML 0.2%