Lobster.Boot 1.1.8

dotnet add package Lobster.Boot --version 1.1.8
NuGet\Install-Package Lobster.Boot -Version 1.1.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lobster.Boot" Version="1.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lobster.Boot --version 1.1.8
#r "nuget: Lobster.Boot, 1.1.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Lobster.Boot as a Cake Addin
#addin nuget:?package=Lobster.Boot&version=1.1.8

// Install Lobster.Boot as a Cake Tool
#tool nuget:?package=Lobster.Boot&version=1.1.8

LobsterBoot

介绍

LobsterBoot是一种新的应用系统开发方式,在线开发前端、后端代码,无需在本地搭建开发环境、安装开发IDE工具,通过浏览器就可以进行开发、调试。主要开发语言采用Typescript,整合了Gitee平台进行代码自动托管,服务部署在Docker。 LobsterBoot是一个开源底层开发框架,类似SpringBoot框架。

以下系统采用LobsterBoot框架进行开发:

  1. LobsterWebIDE(在线代码编辑器)
  2. LobsterAdmin(后台管理系统)
  3. 小苹果互联网医疗健康平台

文档地址:https://kakake.gitee.io/lobsterboot/#/

软件架构

alternate text is missing from this package README image<br>

快速使用
方式一,拉取LobsterBoot Docker镜像进行部署使用
  1. 在Docker中部署LobsterBoot
$ 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
  1. 打开http://localhost:7777/bootconfig.html,进行应用配置,默认登录密码Lobster@123456
  2. 在Gitee网站上进行配置后,编写应用代码
方式二,在netcore项目中引用lobsterboot类库
  1. 引用Lobster.Boot.dll类库
<PackageReference Include="Lobster.Boot" Version="1.0.0" />
  1. 创建lobsterboot.json文件
{
    "LoginPassWord": "Noz2wU8j02qvDMAqqTE+uA==",
    "Gitee": {
        "ClientId": "10a98ef50311779283b652142c19db3b6a3cba8dd7b2ab26e12cb9cb6a046f58",
        "ClientSecret": "",
        "RedirectUri": "https://localhost:7184/bootconfig.html",
        "AccessToken": "",
        "RefreshToken": ""
    },
    "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": "",
                    "ServerName": "",
                    "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"
        }
    ]
}
  1. 修改Program.cs
 builder.Services.AddLobsterBoot(builder.Configuration, logger);

 app.UseLobsterBoot(app.Environment, app.Configuration);
  1. 修改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;database=lobsterplatform;uid=sa;pwd=@;",
    "RedisConnection": "42.192:6379,password=@ux,defaultdatabase=0"
  },
  "RabbitMQ": {
    "Host": "42.192.",
    "Password": "1",
    "Port": 5672,
    "UserName": "admin",
    "VirtualHost": "/admin"
  },
  "App": {
    "ApiGateway": "https://apple.mcloudsoft.cn"
  }
}
功能演示图
  1. 应用配置

配置地址:http://localhost:7777/bootconfig.html

alternate text is missing from this package README image<br>

  1. 应用预览

预览地址:http://localhost:7777/apppreview.html

alternate text is missing from this package README image<br>

  1. 在Gitee上编写代码

模板应用的代码仓库地址:https://gitee.com/kakake/lobsterboot-3052-books

alternate text is missing from this package README image<br>

  1. 调试接口

第一步:在浏览器输入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代码

alternate text is missing from this package README image<br>

LobsterBoot在线体验

演示地址:http://www.mcloudsoft.cn:7777/bootconfig.html
登录密码:Lobster@123456
文档地址:https://kakake.gitee.io/lobsterboot/#/

alternate text is missing from this package README image<br> alternate text is missing from this package README image<br>

LobsterWebIDE(在线代码编辑器)【未开源】

演示地址:http://www.mcloudsoft.cn:7774/webide/appcode.html
登录密码:Lobster@123456

alternate text is missing from this package README image<br>

LobsterAdmin(后台管理系统)在线体验【未开源】

登录地址:http://www.mcloudsoft.cn:7773/admin/login/Index.html
超级管理员:kakake/Aa123456
机构管理员:zenghao/Aa123456
开发者:lobster/Aa123456

alternate text is missing from this package README image<br> alternate text is missing from this package README image<br> alternate text is missing from this package README image<br> alternate text is missing from this package README image<br>

小苹果互联网医疗健康平台在线体验【未开源】

登录地址:http://www.mcloudsoft.cn:7773/admin/login/Index.html
登录账号:zsadmin/Aa123456

alternate text is missing from this package README image<br>

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.8 197 12/1/2023
1.1.7 125 11/25/2023
1.1.6 126 11/20/2023
1.1.5 108 11/19/2023
1.1.4 114 11/13/2023
1.1.3 115 11/4/2023
1.1.2 94 10/31/2023
1.1.1 109 10/30/2023
1.1.0 111 10/27/2023
1.0.9 119 10/26/2023
1.0.8 121 10/22/2023
1.0.7 116 10/20/2023
1.0.6 112 10/19/2023
1.0.5 100 10/18/2023
1.0.4 123 10/17/2023
1.0.3 107 10/16/2023
1.0.2 116 10/16/2023
1.0.1 123 10/15/2023
1.0.0 120 10/14/2023

LobsterBoot核心类库