Lobster.Boot 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Lobster.Boot --version 1.0.5
NuGet\Install-Package Lobster.Boot -Version 1.0.5
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.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lobster.Boot --version 1.0.5
#r "nuget: Lobster.Boot, 1.0.5"
#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.0.5

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

LobsterBoot

介绍

一种新的应用系统开发方式,通过在线开发前端、后端代码,采用Typescript开发api服务,实现web应用、移动应用等开发

软件架构

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

安装教程
  1. 在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
  1. 打开http://localhost:7777/bootconfig.html,进行应用配置,默认登录密码Lobster@123456
  2. 在Gitee网站上编写应用代码
功能说明
  1. 应用预览

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

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>

  1. 在Gitee上编写代码

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

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

  1. 应用配置

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

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

项目中引用Lobster.Boot说明
  1. 引用Lobster.Boot.dll类库
<PackageReference Include="Lobster.Boot" Version="1.0.0" />
  1. 创建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"
        }
    ]
}
  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.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 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 199 12/1/2023
1.1.7 127 11/25/2023
1.1.6 128 11/20/2023
1.1.5 110 11/19/2023
1.1.4 116 11/13/2023
1.1.3 117 11/4/2023
1.1.2 96 10/31/2023
1.1.1 111 10/30/2023
1.1.0 113 10/27/2023
1.0.9 121 10/26/2023
1.0.8 123 10/22/2023
1.0.7 118 10/20/2023
1.0.6 114 10/19/2023
1.0.5 102 10/18/2023
1.0.4 125 10/17/2023
1.0.3 109 10/16/2023
1.0.2 118 10/16/2023
1.0.1 125 10/15/2023
1.0.0 122 10/14/2023

LobsterBoot核心类库