Git Product home page Git Product logo

simple-micro-service's Introduction

用户服务

  • 用户登录
  • 用户注册
  • 用户基本信息查询
  • 无状态, 无 session
  • 单点登录

课程服务

  • 登录验证
  • 课程 curd

信息服务

  • 发送邮件
  • 发送短信

用户 edge-service

课程 edge-service

API GATEWAY


sql:

CREATE DATABASE db_course DEFAULT CHARSET utf8mb4;
use db_course;
CREATE TABLE `pe_course` (
  `id` int(11) NOT NULL,
  `title` varchar(64) NOT NULL,
  `description` varchar(125) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `pe_user_course` (
  `user_id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `pe_course`
  ADD PRIMARY KEY (`id`);
ALTER TABLE `pe_course`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

----------------------
CREATE DATABASE db_user DEFAULT CHARSET utf8mb4;
use db_user;

CREATE TABLE `pe_teacher` (
  `user_id` int(11) NOT NULL,
  `intro` varchar(64) DEFAULT NULL,
  `description` varchar(125) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


CREATE TABLE `pe_user` (
  `id` int(10) UNSIGNED NOT NULL,
  `username` varchar(32) NOT NULL,
  `password` varchar(32) NOT NULL,
  `real_name` varchar(32) DEFAULT NULL,
  `mobile` varchar(32) DEFAULT NULL,
  `email` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ALTER TABLE `pe_user`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `pe_user`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;

ports-list

user-thrift-service 7911
user-edge-service 8080
message-thrift-service 19090
// course-service 8089
course-edge-service 8081
api-gatway-zuul  8889

simple-micro-service's People

Contributors

sazima avatar

Watchers

 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.