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.
- 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 SummaryNo Cache MyBatis Second Level Cache Guava Cache 6304.24
Transactions/s14545.10
Transactions/s15479.08
Transactions/s
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.
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.
-
Use Maven to Install it
mvn install
-
Import the database into your MySQL Server and modify the properties file under
src/main/resources/application.properties
. -
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
-
Test the APIs by curl tool
The default port is 8900.
curl 127.0.0.1:8900/api/v1/pub/video/list_banner
More features, like the support of Redis, Docker and so on, can be added into Milk Tea Mooc.
Thanks for coming! I'll be super thankful if you can star my project.