Giter VIP home page Giter VIP logo

ronaldoxzb / egg-spider Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 1.0 529 KB

egg.js(jwt) + mysql(sequelize) + redis + docker + docker-compose + nginx + vue + element-ui 全栈获取省市区数据(统计局数据)【工具】项目,实现在docker环境中一键部署

Home Page: https://ronaldoxzb.com

License: MIT License

JavaScript 53.73% HTML 10.13% Dockerfile 1.68% Vue 29.15% SCSS 4.55% PLpgSQL 0.76%
eggjs jwt mysql sequelize redis docker docker-compose nginx vuejs element-ui nodejs cheeriojs oss upload-file

egg-spider's Introduction

Egg-spider

Preview

线上预览地址 (https://ronaldoxzb.cn/) 体验账号admin admin

Project description

[后端]egg.js(jwt) + mysql(sequelize) + redis + docker + docker-compose + nginx + vue + element-ui 全栈获取省市区数据(统计局数据)【工具】项目,实现在docker环境中一键部署

1 实现用户注册登录

2 实现统计局省市区数据的爬取

3 实现大批量excel测试数据

4 实现资源的监控

5 实现羽雀API的调用

6 实现邮件的发送(基于smtp.qq.com)

PanJiaChen 大佬最精简的一副vue模版(拿来熟悉docker-compose的发布流程)

Project back end structure description

app

├── contract
│   └── type.js     swaggerdoc配置文件
├── controller
│   ├── api
│   │   ├── area.js     省市区乡镇村数据获取
│   │   ├── mock.js     生成mock数据生成Excel文件
│   │   ├── system.js       获取系统资源使用情况
│   │   ├── tool
│   │   │   └── email.js        发送邮件
│   │   ├── user.js
│   │   └── yuque.js        羽雀API调用
│   └── view
│       └── page.js     模版引擎渲染index
├── database
│   └── db.js       model层公用
├── extend
│   ├── application.js      app扩展函数
│   └── helper.js       公用函数封装
├── middleware
│   ├── error_handler.js    成功/出错处理等
│   ├── notfound_handler.js     404处理等
│   └── pagination.js       分页器封装
├── model
│   ├── cities.js       市表
│   ├── districts.js        街道表
│   ├── provinces.js        省表
│   ├── towns.js        乡镇表
│   ├── user.js     用户表
│   └── villages.js     村表
├── public      静态资源文件
├── router      路由表(不赘述)
│   ├── api
│   │   ├── area.js     
│   │   ├── mock.js
│   │   ├── system.js
│   │   ├── tool
│   │   │   └── email.js
│   │   ├── user.js
│   │   └── yuque.js
│   └── view
│       └── page.js
├── service     逻辑处理层
│   ├── area.js     
│   ├── cache.js
│   ├── common.js
│   └── user.js
├── utils       暂无
└── view        未做前后端分离前的模版引擎渲染的页面
    ├── index.html
    └── tool.html

config

├── config.default.js   默认配置文件
├── config.local.js     本地开发配置文件
├── config.prod.js      生产配置文件
└── plugin.js       插件配置文件

docker

├── mysql
│   ├── Dockerfile      mysql镜像文件
│   ├── init
│   │   └── init.sql        初始建库执行的sql   
│   └── mysqld.cnf      mysql配置文件
├── redis
│   ├── Dockerfile      redis镜像文件
│   └── redis.conf      redis配置文件
├── server
│   └── Dockerfile      server镜像文件启动
└── web
    ├── Dockerfile      web build 及 nginx镜像文件
    └── nginx.conf      nginx配置文件

Author Info

👤 ronaldoxzb

QuickStart

see egg docs for more detail.

Development

server(自行安装docker&docker-compose)

start mysql & redis

$ docker-compose -f docker-compose-dev.yml up     

start server

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

web(自行安装node环境)

start web

$ npm i
$ npm run dev
$ open http://localhost:9028/

Deploy(宿主机安装docker&&docker-compose)

$ docker-compose up
$ docker-compose stop

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

License

MIT license.

Copyright (c) 2021 ronaldoxzb

egg-spider's People

Contributors

ronaldoxzb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

torns

egg-spider's Issues

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.