Coder Social home page Coder Social logo

treecn / cms-egg-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kuangshp/cms-egg-api

0.0 0.0 0.0 56 KB

egg的后台管理系统api的种子工程,提供基本的用户管理、角色管理、权限管理、资源管理模块

JavaScript 81.15% HTML 4.07% PLpgSQL 14.78%

cms-egg-api's Introduction

一、cms-egg-api介绍

cms-egg-api项目仅仅是使用eggjs+mysql搭建一套基础的后台管理系统平台的API的种子工程, 前端可以使用vue或者react进行对接,提供基本功能包括如下:

  • 用户管理

  • 角色管理

  • 资源管理

  • 上传附件

  • 用户登录

  • 图形验证码的生成

  • api的黑白名单

前端使用reactjs的后台管理系统链接地址

二、使用步骤

  • 1、克隆代码

    git clone [email protected]:kuangshp/cms-egg-api.git
  • 2、创建一个数据库

  • 3、根据init.sql脚本生成基本的数据表或者直接执行egg_cms.sql脚本生成带基本数据的数据表

  • 4、安装依赖包及运行代码

    npm install
    npm run dev
  • 5、使用postman进行模拟用户登录获取token(egg_cms.sql中会默认生成用户名admin,密码:123456的账号)

  • 6、请求别的接口时候携带token进行数据操作

三、生产环境的部署

  • 1、直接部署

    npm run start
  • 2、停止项目

    npm run stop

更多信息请参考eggjs

cms-egg-api's People

Contributors

kuangshp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.