Skip to content

Latest commit

 

History

History

springUserSystem

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

springUserSystem

Build user admin system via spring boot

Steps

Run

App
#---------------------------
# RUN DDL
#---------------------------

# please check sql/ddl
#---------------------------
# Install : Redis
#---------------------------

# Redis
# V1 (homebrew)
brew services start redis
redis-cli

# V2 (docker)
docker run -p 6379:6379 -v $PWD/data:/data -d redis:2.3 -server -appendonly yes
#---------------------------
# Install : Consul
#---------------------------

# Consul
# V1 (docker)
cd springUserSystem
mkdir -p /tmp/consul/{conf,data}

docker run --name consel -p 8500:8500 -v /tmp/consul/conf/:/consul/conf/ -v /tmp/consul/data:/tmp/consul/data -d consul

docker ps -a

# access consul UI :
# localhost:8500
#---------------------------
# Run app
#---------------------------

# build
mvn package

# run
java -jar <built_jar>

API

API Type Purpose Example cmd Comment
POST POST loginExit http://localhost:8888/user/loginExit
POST POST loginByMobile http://localhost:8888/user/loginByMobile
POST POST getSmsCode http://localhost:8888/user/getSmsCode
API Type Purpose Example cmd Comment
Swagger
GET GET API page http://localhost:8888/swagger-ui.html swagger page
API Type Purpose Example cmd Comment
GET GET Test http://localhost:8888/index/hello

Important Concepts

Ref