XiChenn / toy-twitter-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start MySQL

$ docker run --name mysql-test -e MYSQL_ROOT_PASSWORD=root -d mysql:latest

Connect to MySQL from command line

find the IP address

$ docker inspect mysql-test | grep "IPAddress"

connect using MySQL client

$ mysql -h <<IP found in previous step>> -u root -p

Create toy_twitter database

mysql> create database toy_twitter;

Run and Test

Run creatTweet() in TweetControllerTest.java to generate a record. Go to http://127.0.0.1:8090/tweet/user/1 to retrieve the record.

About


Languages

Language:Java 100.0%