Code Monkey home page Code Monkey logo

springcloud-shop's Introduction

基于Spring Boot、Spring Cloud的微服务应用

本项目内容基于Spring Boot、Spring Cloud开发。实现电商应用基础服务,包括用户服务,商品服务,订单服务,功能包括用户注册,用户鉴权,商品列表,商品详情,下单,查看订单列表,订单详情。

  • 使用Spring Boot, Spring JPA实现底层服务的CRUD
  • 单元测试,API测试
  • 符合RESTful API规范
  • 实现服务注册发现组件
  • 实现服务网关组件
  • 实现服务的高可用

服务介绍

  • api-gateway : 服务网关
  • eureka-server : 服务注册中心
  • config-server : 分布式配置中心
  • category-service : 商品服务
  • order-service : 订单服务
  • user-service : 用户服务
  • web-app : web服务

开发环境及项目框架介绍

  • IDE: Intellij IDEA
  • 缓存服务器(数据库): Redis
  • 数据库: MySQL(数据库代码dbkeda.sql)
  • 项目框架: Spring Boot + Spring Cloud

演示步骤

  • 1、开启Redis和MySQL服务

  • 2、分别启动各个微服务:EurekaServerApplication、ApiGatewayApplication、ConfigServerApplication、CategoryApplication、OrderApplication、UserApplication、WebApplication

  • 3、服务调用

学习记录

参考博客

更新日志

2019-08-05

变更

  • 重新维护项目,将配置文件拆分到单独的配置中心仓库中去
  • 去除视图组件,通过REST URL调用(推介Postman进行测试)

修复

  • 修复依赖无法加载的问题

感谢

本项目的代码及功能仍十分简陋,一些功能也是简单的实现,偏重于对微服务的理解及构建微服务的一些组件的使用。但还是收到了很多朋友的Star,十分感谢。

springcloud-shop's People

Contributors

suxiongwei avatar

Watchers

James Cloos 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.