Lobster.Boot
1.0.2
See the version list below for details.
dotnet add package Lobster.Boot --version 1.0.2
NuGet\Install-Package Lobster.Boot -Version 1.0.2
<PackageReference Include="Lobster.Boot" Version="1.0.2" />
paket add Lobster.Boot --version 1.0.2
#r "nuget: Lobster.Boot, 1.0.2"
// Install Lobster.Boot as a Cake Addin #addin nuget:?package=Lobster.Boot&version=1.0.2 // Install Lobster.Boot as a Cake Tool #tool nuget:?package=Lobster.Boot&version=1.0.2
LobsterBoot
介绍
一种新的应用系统开发方式,通过在线开发前端、后端代码,采用Typescript开发api服务,实现web应用、移动应用等开发
软件架构
<br>
安装教程
- 在Docker中部署LobsterBoot
$ docker login --username=kakake914@126.com registry.cn-hangzhou.aliyuncs.com
$ docker tag lobster.app:latest registry.cn-hangzhou.aliyuncs.com/kakake/lobsterboot:latest
$ docker push registry.cn-hangzhou.aliyuncs.com/kakake/lobsterboot:latest
$ docker pull registry.cn-hangzhou.aliyuncs.com/kakake/lobsterboot:latest
$ docker run -d -p 7777:80 -p 7222:7222 --restart=always --name lobsterboot registry.cn-hangzhou.aliyuncs.com/kakake/lobsterboot:latest
- 打开
http://localhost:7777/bootconfig.html
,进行应用配置,默认登录密码Lobster@123456
- 在Gitee网站上编写应用代码
功能说明
- 应用预览
预览地址:http://localhost:7777/apppreview.html
<br>
- 接口调试
第一步:在浏览器输入chrome://inspect/#devices,配置地址localhost:7222
第二步:将出现Remote Target#LOCALHOST,点击inspect打开DevTools界面
第三步:打开接口https://localhost:7777/lobsterapi/?fun=tsbook.getdata2&view=layui&appid=3052&debug=true
第四步:DevTools界面将自动进入断点,进行调试api代码
<br>
- 在Gitee上编写代码
模板应用的代码仓库地址:https://gitee.com/kakake/lobsterboot-3052-books
<br>
- 应用配置
配置地址:http://localhost:7777/bootconfig.html
<br>
项目中引用Lobster.Boot说明
- 引用Lobster.Boot.dll类库
<PackageReference Include="Lobster.Boot" Version="1.0.0" />
- 创建lobsterboot.json文件
{
"LoginPassWord": "Noz2wU8j02qvDMAqqTE+uA==",
"Gitee": {
"ClientId": "10a98ef50311779283b652142c19db3b6a3cba8dd7b2ab26e12cb9cb6a046f58",
"ClientSecret": "7a2690421cb1e6b8196680e1f6b6bc7c28922d754c668c8a5f1678747c5b6423",
"RedirectUri": "https://localhost:7184/bootconfig.html",
"AccessToken": "9709bc26281666f79b479aadab2e6daa",
"RefreshToken": "61d941374ad6693a75e6ae39e7cdc4f83e0a326c3e2304768e120b7025f19dc2"
},
"AppList": [
{
"AppId": 3052,
"AppKey": "APP20210329185258876",
"AppName": "模板应用",
"AppImage": "https://lobsteross.mcloudsoft.cn/20221108/50435422-7be8-4eaa-a272-315901701456.png",
"AppSecret": "7fdbc0ffc06546277acb945798",
"gitee_repo": {
"owner": "kakake",
"repo": "lobsterboot-3052-books",
"refs": "master"
},
"menus": [
{
"name": "书籍管理(在线Web)",
"href": "/webapp/3052/bookmanage.html",
"children": null
}
],
"databases": [
{
"DBName": "LobsterPlatform",
"UserName": "sa",
"Pass": "Lobster@123",
"ServerName": "42.192.250.43",
"DBPort": "1433",
"DbType": "sqlserver",
"DefaultFlag": true
}
],
"maskingrules": [
{
"Name": "名称脱敏",
"Fields": "BookName",
"StartNum": 1,
"EndNum": 1,
"ReplaceChar": "*",
"ExcludeFunname": ""
}
],
"lastpulldatetime": "2023-10-14 23:53:41",
"lastpublishdatetime": "2023-10-14 23:53:42",
"environment_pro": false
}
],
"CustomFactory": [
{
"dll": "Lobster.Boot",
"type": "Lobster.Boot.ClearScript.IClearScriptHandler"
}
]
}
- 修改Program.cs
builder.Services.AddLobsterBoot(builder.Configuration, logger);
app.UseLobsterBoot(app.Environment, app.Configuration);
- 修改appsettings.Development.json
{
"Logging": {
"LogLevel": {
"Default": "Trace",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ConnectionStrings": {
"DbType": "sqlserver", //数据库类别:sqlserver、uxdb、npgsql、mysql、sqllite等
"DefaultConnection": "server=42.192.250.43;database=lobsterplatform;uid=sa;pwd=Lobster@123;",
"RedisConnection": "42.192.250.43:6379,password=hlwyy@ux,defaultdatabase=0"
},
"RabbitMQ": {
"Host": "42.192.250.43",
"Password": "1",
"Port": 5672,
"UserName": "admin",
"VirtualHost": "/admin"
},
"App": {
"ApiGateway": "https://apple.mcloudsoft.cn"
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Aliyun.OSS.SDK.NetCore (>= 2.13.0)
- CSRedisCore (>= 3.8.671)
- Dapper (>= 2.1.4)
- Dapper.Contrib (>= 2.0.78)
- Hei.Captcha (>= 0.3.0)
- Microsoft.AspNetCore.Authentication (>= 2.2.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 6.0.23)
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 6.0.22)
- Microsoft.AspNetCore.Mvc.Versioning (>= 5.1.0)
- Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer (>= 5.1.0)
- Microsoft.ClearScript.Core (>= 7.3.4)
- Microsoft.ClearScript.osx-x64 (>= 7.3.4)
- Microsoft.ClearScript.V8 (>= 7.3.4)
- Microsoft.ClearScript.V8.Native.linux-x64 (>= 7.3.4)
- Microsoft.ClearScript.V8.Native.win-x64 (>= 7.3.4)
- Microsoft.Extensions.Caching.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
- Microsoft.IdentityModel.Tokens (>= 7.0.2)
- MySql.Data (>= 8.1.0)
- NLog (>= 5.2.4)
- NodaTime (>= 2.4.5)
- qcloud.qcloudsms_csharp (>= 0.1.6)
- RestSharp (>= 110.2.0)
- System.Data.SqlClient (>= 4.8.5)
- System.Drawing.Common (>= 7.0.0)
- System.IdentityModel.Tokens.Jwt (>= 7.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Lobster.Boot:
Package | Downloads |
---|---|
Lobster.WebIDE
在线IDE |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.5.8 | 46 | 11/21/2024 |
1.5.7 | 43 | 11/20/2024 |
1.5.6 | 65 | 11/18/2024 |
1.5.5 | 64 | 11/13/2024 |
1.5.4 | 86 | 11/11/2024 |
1.5.3 | 76 | 11/8/2024 |
1.5.2 | 74 | 11/8/2024 |
1.5.1 | 80 | 11/2/2024 |
1.5.0 | 84 | 10/22/2024 |
1.4.9 | 85 | 10/21/2024 |
1.4.7 | 140 | 10/18/2024 |
1.4.6 | 92 | 10/7/2024 |
1.4.5 | 85 | 10/6/2024 |
1.4.4 | 149 | 8/30/2024 |
1.4.3 | 95 | 8/29/2024 |
1.4.2 | 100 | 8/29/2024 |
1.4.1 | 101 | 8/29/2024 |
1.4.0 | 165 | 8/23/2024 |
1.3.9 | 124 | 8/17/2024 |
1.3.8 | 112 | 8/17/2024 |
1.3.7 | 121 | 8/15/2024 |
1.3.6 | 118 | 8/14/2024 |
1.3.5 | 111 | 8/14/2024 |
1.3.4 | 108 | 8/12/2024 |
1.3.3 | 56 | 8/2/2024 |
1.3.2 | 53 | 8/2/2024 |
1.3.1 | 88 | 8/1/2024 |
1.3.0 | 92 | 7/29/2024 |
1.2.9 | 77 | 7/24/2024 |
1.2.8 | 74 | 7/11/2024 |
1.2.7 | 82 | 7/11/2024 |
1.2.6 | 71 | 7/11/2024 |
1.2.5 | 102 | 6/15/2024 |
1.2.4 | 103 | 5/16/2024 |
1.2.3 | 90 | 5/14/2024 |
1.2.2 | 78 | 5/13/2024 |
1.2.1 | 86 | 5/11/2024 |
1.2.0 | 80 | 5/8/2024 |
1.1.9 | 90 | 5/8/2024 |
1.1.8 | 243 | 12/1/2023 |
1.1.7 | 155 | 11/25/2023 |
1.1.6 | 154 | 11/20/2023 |
1.1.5 | 138 | 11/19/2023 |
1.1.4 | 143 | 11/13/2023 |
1.1.3 | 148 | 11/4/2023 |
1.1.2 | 116 | 10/31/2023 |
1.1.1 | 143 | 10/30/2023 |
1.1.0 | 143 | 10/27/2023 |
1.0.9 | 155 | 10/26/2023 |
1.0.8 | 158 | 10/22/2023 |
1.0.7 | 155 | 10/20/2023 |
1.0.6 | 143 | 10/19/2023 |
1.0.5 | 130 | 10/18/2023 |
1.0.4 | 160 | 10/17/2023 |
1.0.3 | 144 | 10/16/2023 |
1.0.2 | 131 | 10/16/2023 |
1.0.1 | 155 | 10/15/2023 |
1.0.0 | 149 | 10/14/2023 |
LobsterBoot核心类库