Introduction to the
Based on the overview of the Soul source code read (1), this section runs an example of the Soul gateway
The process records
Now we can use the map, explore the neighborhood a little bit, touch it
First pull down the project, the general order is as follows:
#Fork code to its own reference
#Pull code locally
git clone xxxxxx
#If you're submitting PR to Soul on a regular basis, create a new branch while you're doing your research so you don't have to change it back, and the new branch can change as much as you wantGit checkout -b read to avoid contaminating the original code and affecting future commitsCopy the code
Soul Admin needs data, let’s simply launch one using Docker
#Docker starts a mysql database with password 123456
#If you have run Soul before, delete the database again and let it rebuild because there will be changes to the database later
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:latest
Copy the code
Soul admin Modifies database information in the configuration file
Start soul-admin by running the main function under the Soul Admin module
Run the Soul Bootstrap module’s main function and start soul-bootstrap to see information about webSocket synchronization
Visit http://localhost:9095 and log in to soul-admin. The account and password are admin 123456
Find the Divide Plug-in add selector for the list of plug-ins
Add rules
Visit http://localhost:9195/ and get the result of netty.
Successful run!