# web_tools **Repository Path**: null_639_7345/web_tools ## Basic Information - **Project Name**: web_tools - **Description**: 使用 Koa2 + Mysql 搭建工具管理平台 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-03-06 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # web_tools 使用 Koa2 + Mysql 搭建工具管理平台 ## 开发环境 * Node.js: `6.11.0` * Mysql: `5.5.40` * Koa: `2.0.0` ## 效果 ![](./doc/images/home.png) ![](./doc/images/group.png) ## Release notes > V 1.0 v1.0.0版本功能介绍 1.未登录是可查看所有的外链工具 2.登录后 可修改密码 根据账号所在组权限可使用不同工具(如:管理员组:用户管理...) 查看工具使用记录(最近15条,不记录外链工具) 3.管理员登录后 用户管理:添加和修改用户,分配用户组权限。 组权限管理:添加、修改、删除组的工具的访问权限和提交权限。 工具管理:添加、修改工具信息。 > V 2.0(2017 年 10 月 19 日 16:32:43) v2.0.0版本新增功能介绍 1.新增列表风格版首页 2.图标版新增手机快速扫码访问 3.图标版新增动态搜索功能 4.列表版自带搜索·排序功能 5.修改查看工具使用记录最多为10条 6.修改若干样式 7.图标版皮肤切换 ## kails [![Build Status](https://travis-ci.org/embbnux/kails.svg?branch=master)](https://travis-ci.org/embbnux/kails) A Web App like Ruby on Rails with Koa2, Webpack and Postgres. This project is like Ruby on Rails Project: * MVC * Database (postgres), ORM(sequelize) * migration(sequelize-cli) * assets compile(webpack) * Session with redis * Password with bcrypt * Testing (mocha) * Lint (eslint) * middlewares * console * server side render with react * flash message ## Requirements * node **^4.0.0** * npm **^3.0.0** ## Features * User system * Post article with markdown editor * Hacker news middlelayer ## Structure ``` ├── app │ ├── assets │ │   ├── images │ │   ├── javascripts │ │   └── stylesheets │   ├── controllers │   ├── helpers │   ├── models │   ├── routes │   ├── services │   ├── views │   └── index.js ├── config │   ├── config.js │   └── webpack │    ├── base.js │    ├── development.js │    └── production.js ├── db │   └── migrations ├── index.js ├── package.json ├── public └── test ``` ## Build development environment on localhost 1. install nodejs 2. install redis and mysql 3. create mysql database: 4. clone and start this project ```bash npm install npm run webpack_dev npm run start ``` 5. Visit http://localhost:7000/ ## Deploy on production [How to Deploy Kails](https://github.com/embbnux/kails/wiki/How-to-Deploy-Kails) [How to Deploy Kails With Docker](https://github.com/embbnux/kails/wiki/How-to-Deploy-Kails-with-docker) ## Commands with npm ``` # migrate database npm run db:migrate NODE_ENV=test npm run db:migrate # run for development. it start app and webpack dev server npm start # run the app npm run app # run the lint npm run lint # run test npm test # deploy npm run build npm run assets_compile NODE_ENV=production npm run db:migrate npm run pm2 # console npm run console ``` ## Author * [Embbnux Ji](https://www.embbnux.com) ## Blog * [What about Kails](https://www.embbnux.com/2016/09/04/kails_with_koa2_like_ruby_on_rails/) ## License [MIT](https://github.com/embbnux/kails/blob/master/LICENSE.txt)