Skip to content

This is an online learning website named MilkTea. It is built by SpringBoot 2.3 + Spring 5 + Mybatis 3.

Notifications You must be signed in to change notification settings

HelloLindo/MilkTea-Mooc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Milk Tea Mooc

Build Status GitHub code size in bytes LindoWu Project-MilkTeaMooc

What Is It?

This is the back-end service of an online learning website named Milk Tea.

The full techniques are SpringBoot 2.3 + Spring 5 + MyBatis 3 + MySQL + JWT + Guava Cache + JMeter.

Features

  • Base on Java with high portability.
  • Use Json Web Token to support Login Module.
  • Enable Guava Cache to provide high speed access.
  • Pass JMeter Load Test with High Performance.

    More about Milk Tea Mooc Load Test
    Load Test Summary

    No Cache MyBatis Second Level Cache Guava Cache
    6304.24
    Transactions/s
    14545.10
    Transactions/s
    15479.08
    Transactions/s

API Document

Check the ./ApiDoc directory for the API Document.

If you want to view the website version of API Document, please unzip the ./ApiDoc/MilkTeaMoocApiDoc.zip and open the index.html file.

Requirements

The following requirements are required in your machine for running Milk Tea Mooc Service:

  • Java: JDK 14+

    JDK 8+ is ok, but you have to modify some codes because we use JDK 14 Lambda Syntax.

  • Maven: 3.0.0+
  • MySQL: 5.6+
  • JMeter (Optional): 5.3+

    Install it if you want to run the Load Test.

How To Run and Test

  1. Use Maven to Install it

     mvn install
  2. Import the database into your MySQL Server and modify the properties file under src/main/resources/application.properties.

  3. Enter the target directory and Start the Application

    You may redirect the application to use your application properties by adding -Dspring.config.location command.

     cd target
     java -jar [-Dspring.config.location=./application.properties] milkteamooc-0.0.1-SNAPSHOT.jar
  4. Test the APIs by curl tool

    The default port is 8900.

     curl 127.0.0.1:8900/api/v1/pub/video/list_banner

TODO

More features, like the support of Redis, Docker and so on, can be added into Milk Tea Mooc.

Author

Lindo Wu

Thanks

Thanks for coming! I'll be super thankful if you can star my project.

About

This is an online learning website named MilkTea. It is built by SpringBoot 2.3 + Spring 5 + Mybatis 3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages