Skip to content

Commit

Permalink
✨ feat: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arterli committed Sep 9, 2022
1 parent 7fd9f85 commit 5cfdae1
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 32 deletions.
47 changes: 29 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 重要说明
基础框架已经开放完成,文档编写中。。。
基础框架已经开放完成,文档和新官网近期发布。。。
# CmsWing

CmsWing 2.0
Expand All @@ -10,26 +10,37 @@ CmsWing 2.0

see [egg docs][egg] for more detail.

### Development
### 启动说明
git clone 到本地后,进入项目根目录
#### 修改数据库
/congfig/sequelize.js
```bash
{
dialect: 'mysql',
host: '127.0.0.1',
port: 3306,
database: 'cmswing2',
username: 'root',
password: 'root123456',
}
```
修改成你自己的数据库,先创建数据库,然后把数据库配置文件的信息修改成你实际的数据库信息。
### 启动项目

```bash
$ npm i
$ npm run dev
$ open http://localhost:7001/
```

### Deploy

```bash
$ npm start
$ npm stop
```

### npm scripts

- Use `npm run lint` to check code style.
- Use `npm test` to run unit test.
- Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail.


[egg]: https://eggjs.org
启动项目后会自动生成表结构,和初始化信息。
### 后台登录

后台地址:http://localhost:7001/admin
账号:admin
密码:123456

### 技术栈
egg https://www.eggjs.org/
amis https://aisuda.bce.baidu.com/amis/zh-CN/docs/index
sequelize https://www.sequelize.cn/
graphql https://graphql.cn/
28 changes: 14 additions & 14 deletions app/router/cw_router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5cfdae1

Please sign in to comment.