ng-antd-admin 项目使用教程

ng-antd-admin 项目使用教程

ng-ant-adminAngular17 Standalone components 独立组件, 中后台管理系统模板,移动端适配 Mobile adaptation ng-zorro ant-design-pro front-end framework项目地址:https://gitcode.com/gh_mirrors/ng/ng-ant-admin

1. 项目的目录结构及介绍

ng-antd-admin 项目的目录结构如下:

ng-antd-admin/
├── src/
│   ├── app/
│   ├── assets/
│   ├── environments/
│   ├── index.html
│   ├── main.ts
│   ├── styles.less
│   └── ...
├── editorconfig
├── eslintignore
├── eslintrc.js
├── gitignore
├── prettierignore
├── prettierrc.js
├── stylelintrc
├── LICENSE
├── README.md
├── angular.json
├── ng-ant-admin-api.sql
├── package-lock.json
├── package.json
├── tsconfig.app.json
├── tsconfig.json
└── tsconfig.spec.json

目录结构介绍

  • src/:项目的源代码目录,包含应用的主要代码。
    • app/:应用的主要逻辑代码。
    • assets/:静态资源文件,如图片、字体等。
    • environments/:环境配置文件。
    • index.html:应用的入口 HTML 文件。
    • main.ts:应用的入口 TypeScript 文件。
    • styles.less:全局样式文件。
  • editorconfig:编辑器配置文件。
  • eslintignore:ESLint 忽略配置文件。
  • eslintrc.js:ESLint 配置文件。
  • gitignore:Git 忽略配置文件。
  • prettierignore:Prettier 忽略配置文件。
  • prettierrc.js:Prettier 配置文件。
  • stylelintrc:Stylelint 配置文件。
  • LICENSE:项目许可证文件。
  • README.md:项目说明文档。
  • angular.json:Angular 项目配置文件。
  • ng-ant-admin-api.sql:数据库 SQL 文件。
  • package-lock.json:npm 依赖锁定文件。
  • package.json:npm 依赖配置文件。
  • tsconfig.app.json:应用的 TypeScript 配置文件。
  • tsconfig.json:TypeScript 配置文件。
  • tsconfig.spec.json:测试的 TypeScript 配置文件。

2. 项目的启动文件介绍

项目的启动文件主要包括 main.tsindex.html

main.ts

main.ts 是 Angular 应用的入口文件,负责启动应用。其主要内容如下:

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

if (environment.production) {
  enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));

index.html

index.html 是应用的入口 HTML 文件,包含应用的根元素。其主要内容如下:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>NgAntdAdmin</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root></app-root>
</body>
</html>

3. 项目的配置文件介绍

项目的配置文件主要包括 angular.jsontsconfig.jsonpackage.json 等。

angular.json

angular.json 是 Angular 项目的配置文件,包含项目的构建和开发配置。其主要内容如下:

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "ng-antd-admin": {
      "projectType": "application",
      "schematics": {},
      "root

ng-ant-adminAngular17 Standalone components 独立组件, 中后台管理系统模板,移动端适配 Mobile adaptation ng-zorro ant-design-pro front-end framework项目地址:https://gitcode.com/gh_mirrors/ng/ng-ant-admin

  • 7
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

沈昊冕Nadine

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值