代码改变世界

天行健,君子以自强不息

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

背景

在我们完成了仓储、订单和财务模块的开发之后,我们创建一个应用程序来发布我们的产品。

步骤

1、访问abp的官网

2、得到我们要的abp命令和参数

img

说明:

  • 我们选Blazor Server
  • 我们用MySQL数据库

3、在PowserShell中执行abp命令

PS X:\abp-study> ls


    目录: X:\abp-study


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        2024/3/20      2:08                Ami.Wms.Common


PS X:\abp-study> abp new Ami.BlazorOne -u blazor-server -dbms MySQL -csf
ABP CLI 8.0.5
Creating your project...
Project name: Ami.BlazorOne
DBMS: MySQL
UI Framework: BlazorServer
Output folder: X:\abp-study\Ami.BlazorOne
Using cached template: app-pro, version: 8.0.5
Theme: LeptonX
Theme Style: System
Check out the documents at https://docs.abp.io/en/commercial/latest
'Ami.BlazorOne' has been successfully created to 'X:\abp-study\Ami.BlazorOne'
Creating openiddict.pfx file on X:\abp-study\Ami.BlazorOne\src\Ami.BlazorOne.Blazor
A valid HTTPS certificate is already present.
Creating initial migrations...
Initial migrations are created.
Installing client-side packages...
YARN is not installed, which may cause package inconsistency, please use YARN instead of NPM. visit https://classic.yarnpkg.com/lang/en/docs/install/ and install YARN
Found 1 projects.
X:\abp-study\Ami.BlazorOne\src\Ami.BlazorOne.Blazor
Running npm install on X:\abp-study\Ami.BlazorOne\src\Ami.BlazorOne.Blazor
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5
npm WARN deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7
npm WARN deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated cuid@2.1.8: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.
npm WARN deprecated flag-icon-css@4.1.7: The project has been renamed to flag-icons

added 602 packages, and audited 603 packages in 22s

12 packages are looking for funding
  run `npm fund` for details

29 vulnerabilities (2 low, 7 moderate, 20 high)

To address issues that do not require attention, run:
  npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
PS X:\abp-study>

启动Blazor

1、生成数据库

1)、修改“Ami.BlazorOne.DbMigrator”下的配置文件中的数据库连接字符串:

img

2)、启动“Ami.BlazorOne.DbMigrator”

img

2、启动“Ami.BlazorOne.Blazor”

1)、修改“Ami.BlazorOne.Blazor”下的配置文件中的数据库连接字符串

2)、启动“Ami.BlazorOne.Blazor”

img

3)、登录

img

4)、SAAS中的“租户”和“版本”

img

img

img

后记

本文的代码放在:https://gitee.com/royalsoft/ami-blazor-one

这里“租户”的概念已经出来了,我们下一篇文章先引入“仓储”模块,然后再详细展示“租户”和“版本”的直观意义。

posted on 2024-03-20 03:43  终南山人  阅读(310)  评论(0编辑  收藏  举报