All Projects → fomenyesu → Egg Restapi Module Tool

fomenyesu / Egg Restapi Module Tool

a example of eggjs, react, antd, dva, webpack, mysql, restful api and other stuff made it work...

Projects that are alternatives of or similar to Egg Restapi Module Tool

mall-by-react
一个react商城客户端和egg服务端
Stars: ✭ 22 (-93.37%)
Mutual labels:  dva, egg
Jsyang Admin
基于nodejs+egg+squelize+mysql+antd-design+wangEditor+dva+umi+react开发的后台管理平台快速生成方案,让前端er也可以快速进行全栈开发 https://jsyangadmin.github.io/
Stars: ✭ 29 (-91.27%)
Mutual labels:  egg, dva
egg-y-validator
☯️ Egg Magic Validator (Egg 魔法验证工具)
Stars: ✭ 30 (-90.96%)
Mutual labels:  egg
Dva Admin
dva admin antd dashboard
Stars: ✭ 278 (-16.27%)
Mutual labels:  dva
egg-router
router for eggjs, fork from koa-router with some additional features
Stars: ✭ 50 (-84.94%)
Mutual labels:  egg
egg-vue-typescript-boilerplate
Egg Vue TypeScript Server Side Render (SSR) / Client Side Render (CSR)
Stars: ✭ 69 (-79.22%)
Mutual labels:  egg
Egg Commerce
Stars: ✭ 264 (-20.48%)
Mutual labels:  egg
egg-typescript-element-kit
基于 Egg + TypeScript + Element 博客系统,包括前台系统和后台管理系统
Stars: ✭ 19 (-94.28%)
Mutual labels:  egg
Egg Ant Design Pro
showcase for Egg loves Ant Design
Stars: ✭ 304 (-8.43%)
Mutual labels:  egg
docker
Egg official docker image
Stars: ✭ 26 (-92.17%)
Mutual labels:  egg
Egg Mysql
MySQL plugin for egg
Stars: ✭ 276 (-16.87%)
Mutual labels:  egg
egg-nuxt
The Nuxt plugin for eggjs
Stars: ✭ 23 (-93.07%)
Mutual labels:  egg
Ant-Design-Pro-V5
Ant Design Pro V5 详细配置,包括分模块打包,ahooks的使用,L7 地图组件的封装,合理的初始化数据,更有动态表单、动态表格、OSS图片上传等优秀组件(项目会逐渐迭代)~
Stars: ✭ 28 (-91.57%)
Mutual labels:  dva
Bird Front
bird前端项目,基于react、antd、antd-admin,封装常用数据组件,细粒度权限解决方案。
Stars: ✭ 272 (-18.07%)
Mutual labels:  dva
egg-view-vue-ssr
Egg Vue Server Side Render (SSR) Plugin
Stars: ✭ 90 (-72.89%)
Mutual labels:  egg
Cool Admin Midway
cool-admin(midway版)一个很酷的后台权限管理框架,模块化、插件化、CRUD极速开发,永久开源免费,基于midway.js 2.0、typeorm、mysql、jwt、element-ui等构建
Stars: ✭ 204 (-38.55%)
Mutual labels:  egg
egg-nuxt-blog
Nuxt.js(web端) + Egg.js(api 服务) + Vue.js(管理后台)+ ElementUI(通用组件库)服务器渲染(SSR)搭建的个人博客系统
Stars: ✭ 16 (-95.18%)
Mutual labels:  egg
egg-session
session plugin for egg
Stars: ✭ 48 (-85.54%)
Mutual labels:  egg
egg-nideshop
使用egg框架重写的nideshop后台
Stars: ✭ 49 (-85.24%)
Mutual labels:  egg
Egg
🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
Stars: ✭ 17,616 (+5206.02%)
Mutual labels:  egg

Egg Restapi Module Tool

a example of eggjs2.0, react, antd, dva2.0, webpack, mysql, restful api and other stuff made it work...

you can generate rest api eazily by this tool.

中文 README

update note:

2017-07-10 initial

2017-07-17 egg-restapi-module-tool v0.9 Released

2017-12-01 update login module with oauth2.0

2018-01-03 update dva to dva2.0

2018-01-04 update egg to egg2.0

Examples for egg

use react, Antd and dva to develop front end modules. use eggjs and mysql to be backend. you can use npm run dev to develop both side's service. or use it as a boilerplate.

this example include two modules: 1 modules manager : module table's CRUD operation, 2 request manager : an note for restful api witch is generated by module tool.

Develop

Installation

install mysql start mysql import testdb.sql to mysql

npm i egg-bin --save-dev
npm install

Start up:

run npm to start server

npm run dev

Go to http://localhost:8080

also you can : npm run dev_static to start front react project npm run server to start egg server npm run dev to start both

Distribute

$ npm run build
$ npm run pro

npm run build to build the front end react project. npm run pro in server to start project on you server visit http://serverIP:7001

REST API Example

api/restql/users GET List

{
"meta":{"total":3},
"data":[
{"_id":"58d8a899f5f2486f1f6d4236","uid":1,"name":"admin","pass":"123","status":1,"time":"1325472736"},
{"_id":"58db7828a14b14815447cf33","name":"sdf","pass":"123","status":1,"time":"1325472736","uid":3,"__v":0},
{"_id":"58db7d3bcee4d48df6f5bdfd","name":"sdddf","pass":"123","status":1,"time":"1325472736","uid":4,"__v":0}
]
}

api/restql/users/1 GET Single Data

{
"meta":{"total":1},
"data":[
{"_id":"58d8a899f5f2486f1f6d4236","uid":1,"name":"admin","pass":"123","status":1,"time":"1325472736"}
]
}

api/restql/users/2 PUT Update data with uid

{"name":"admin123","pass":"123","status":1,"time":"1325472736"}

api/restql/users POST insert data

{"name":"admin123","pass":"123","status":1,"time":"1325472736"}

same with news and news_type for rest api data.

screen shot

login.png page1.png page2.png page3.png

Thank you

egg

ant-design

antd-admin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].