mirror of
				https://github.com/nsnail/NetAdmin.git
				synced 2025-10-31 11:25:27 +08:00 
			
		
		
		
	docs: 📝 更新 readme (#126)
This commit is contained in:
		
							
								
								
									
										65
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										65
									
								
								README.md
									
									
									
									
									
								
							| @@ -19,54 +19,35 @@ docker run -p 8080:8080 nsnail/netadmin | |||||||
|  |  | ||||||
| ## 构建步骤 | ## 构建步骤 | ||||||
|  |  | ||||||
| - 后端 | ```shell | ||||||
|     1. 检查dotnet-sdk版本>=9.0.0 | # 1. 克隆代码仓库 | ||||||
|    ``` shell | # 下载 git https://git-scm.com/downloads | ||||||
|    dotnet --list-sdks | git clone https://github.com/nsnail/NetAdmin.git && cd ./NetAdmin | ||||||
|  |  | ||||||
|    # 下载 dotnet https://dotnet.microsoft.com/zh-cn/download/dotnet | # 2. 检查dotnet-sdk版本>=9.0.0 | ||||||
|    ``` | # 下载 dotnet https://dotnet.microsoft.com/zh-cn/download/dotnet | ||||||
|     2. 克隆代码仓库 | dotnet --list-sdks | ||||||
|    ``` shell |  | ||||||
|    git clone https://github.com/nsnail/NetAdmin.git |  | ||||||
|    cd ./NetAdmin |  | ||||||
|  |  | ||||||
|    # 下载 git https://git-scm.com/downloads | # 3. 确保本机redis处于运行状态 | ||||||
|    ``` | # 下载 redis for windows https://github.com/redis-windows/redis-windows/releases | ||||||
|     3. 确保本机redis处于运行状态 | # 下载 redis for linux/mac https://redis.io/download | ||||||
|    ``` shell | redis-cli | ||||||
|    redis-cli |  | ||||||
|  |  | ||||||
|    # 下载 redis for windows https://github.com/redis-windows/redis-windows/releases | # 4. 运行后端WebApi | ||||||
|    # 下载 redis for linux/mac https://redis.io/download | # 浏览器打开 http://localhost:5010 ,将看到Swagger(Knife4jUI)界面 | ||||||
|    ``` | dotnet run --project ./src/backend/NetAdmin.AdmServer.Host/NetAdmin.AdmServer.Host.csproj --urls http://[::]:5010 -is | ||||||
|     4. 运行后端WebApi |  | ||||||
|    ``` shell |  | ||||||
|    dotnet run --project ./src/backend/NetAdmin.AdmServer.Host/NetAdmin.AdmServer.Host.csproj --urls http://[::]:5010 -is |  | ||||||
|    ``` |  | ||||||
|     5. 体验WebApi程序 |  | ||||||
|         - 浏览器打开 http://localhost:5010 ,将看到Swagger(Knife4jUI)界面 |  | ||||||
|  |  | ||||||
| --- | # 5. 检查nodejs版本>=20 | ||||||
|  | # 下载 nodejs https://nodejs.org/en/download | ||||||
|  | node -v | ||||||
|  |  | ||||||
| - 前端 | # 6. 安装npm依赖包 | ||||||
|     1. 检查nodejs版本>=20 | cd ./src/frontend/admin && npm install | ||||||
|    ``` shell |  | ||||||
|    node -v |  | ||||||
|  |  | ||||||
|    # 下载 nodejs https://nodejs.org/en/download | # 7. 运行前端项目 | ||||||
|    ``` | # 浏览器打开 http://localhost:5020 ,将看到管理界面(默认用户名:root,密码:1234qwer) | ||||||
|     2. 安装npm依赖包 | npm run dev | ||||||
|    ``` shell | ``` | ||||||
|    cd ./src/frontend/admin |  | ||||||
|    npm install |  | ||||||
|    ``` |  | ||||||
|     3. 运行前端项目 |  | ||||||
|    ``` shell |  | ||||||
|    npm run dev |  | ||||||
|    ``` |  | ||||||
|     4. 体验前端程序 |  | ||||||
|         - 浏览器打开 http://localhost:5020 ,将看到管理界面(默认用户名:root,密码:1234qwer) |  | ||||||
|  |  | ||||||
| ## 文件目录树 | ## 文件目录树 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub