Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 1, 2023
1 parent dce60fe commit 6695d81
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion springWarehouse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Warehouse data are maintained, managed via this app

- Java
- Spring boot
- mybatisplus
- mybatispluss
- thymeleaf
- Mysql

Expand Down Expand Up @@ -61,6 +61,62 @@ docker run -p 7777:7777 spring-warehouse

</details>

## Run (Ubuntu)

<details>
<summary>App</summary>

```bash

#---------------------------
# Step 1) clone code
#---------------------------

git clone https://github.com/yennanliu/SpringPlayground.git
cd SpringPlayground/springWarehouse

# update apt
sudo sudo apt update

#---------------------------
# Step 2) build jar
#---------------------------

# build java jar
sudo apt install maven
mvn package -DskipTests

#---------------------------
# Step 3) install mysql server, update pwd, data model
#---------------------------

sudo apt install mysql-server

# start mysql @ ububtu
sudo service mysql start

# access mysql CLI
# https://www.twblogs.net/a/5baa9f262b7177781a0e54cb
sudo mysql -u root # I had to use "sudo" since is new installation

mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;

sudo service mysql restart

# access mysql CLI again, and run DDL under `/sql/ddl`
mysql -u root

#---------------------------
# Step 2) run App
#---------------------------
java -jar target/springWarehouse-0.0.1-SNAPSHOT.jar
```

</details>

## API

| API | Type | Purpose | Example cmd | Comment|
Expand Down

0 comments on commit 6695d81

Please sign in to comment.