1 Star 1 Fork 0

BluesYoung-web / young-naive-admin-restful

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

young-naive-admin-restful

RESTFUL API,与 modern-server-egg 配套使用

特性

Vue3 + TypeScript + Vite

Naive UI

Unocss

推荐开发环境

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

使用

# 依赖安装
pnpm install

环境变量

# .env.local 文件

# 标题,选配
VITE_TITLE = 'XX后台'

# CSRF 默认启用,需要显示关闭
# VITE_DISABLE_CSRF = true

# casdoor 默认关闭,需要显示启用
# VITE_ENABLE_CASDOOR = true

# 代理接口的地址
VITE_BASE_HTTP = '/api'
# websocket 地址
VITE_BASE_WS = '/ws'
# 开发阶段的真实请求地址
VITE_DEV_ADDRESS = 'http://localhost:8080'

# casdoor 相关
VITE_CAS_SERVER = 'https://door.casdoor.com'
VITE_CAS_ID = '014ae4bd048734ca2dea'
VITE_CAS_ORG = 'casbin'
VITE_CAS_APP = 'app-casnode'

开发运行

pnpm dev

检查TS类型并打包

pnpm build

执行单元测试(开发阶段)

基于Vitest

pnpm test
MIT License Copyright (c) 2022 张扬 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

modern-server-egg 配套的后台管理系统模板 展开 收起
TypeScript 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/BluesYoung-web/young-naive-admin-restful.git
git@gitee.com:BluesYoung-web/young-naive-admin-restful.git
BluesYoung-web
young-naive-admin-restful
young-naive-admin-restful
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891