Skip to content

Commit ae3d3a0

Browse files
authoredSep 25, 2022··
Merge pull request #198 from terwer/v4.x
v4.2.0
2 parents 3c8e9d8 + fcfee9f commit ae3d3a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+4657
-124
lines changed
 

‎README.md

+19-37
Original file line numberDiff line numberDiff line change
@@ -21,82 +21,64 @@
2121
Next light-weight,responsive project
2222
With Docker,Vue2,Vue CLI 3,webpack4,Java8 and Spring Boot5
2323

24-
# Important Changes in JVue 4
24+
## Important Changes in JVue 4
2525

2626
Using [Docker](https://docs.docker.com/develop/dev-best-practices/) for deploy
2727

28-
# Install
28+
## Install
2929
The instructions assume that you have already installed [Docker](https://docs.docker.com/installation/) and [Docker Compose](https://docs.docker.com/compose/install/).
3030

31-
# Run
31+
## Run
3232

33-
## install docker
33+
### install docker
3434
```
3535
yum install docker
3636
```
3737

38-
## install docker-compose
38+
### install docker-compose
3939
```
4040
curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
4141
```
4242

4343
See [https://docs.docker.com/compose/reference/up/](https://docs.docker.com/compose/reference/up/)
4444

45-
## run jvue
45+
## Run jvue
4646

47-
### via docker(for production)
47+
### docker(for dev)
4848

4949
```bash
50-
docker compose up -d --build
50+
docker compose up --build
5151
```
5252

53-
### custom(for dev)
54-
~~1. mysql~~
53+
### docker(for production)
5554

5655
```bash
57-
docker compose -f docker-compose-mysql.yml
56+
docker compose up -d --build
5857
```
5958

60-
2. Jvue-server
59+
### dev
60+
61+
1. jvue-mysql
62+
63+
2. jvue-server
6164

6265
```bash
6366
cd ./jvue-server/src/main/java/com/terwergreen/jvueserver
6467
# then run JVueServerApplication `main` function
6568
# that's all
6669
```
6770

68-
~~3. Jvue-front~~
71+
3. jvue-front
6972

7073
```bash
7174
cd ./jvue-front
7275
yarn
7376
yarn dev
7477
```
75-
76-
### Test docker(for dev)
78+
or somplely
7779

7880
```bash
79-
docker compose -f docker-compose.yml up --build
80-
```
81-
82-
### vercel
83-
84-
1. config
85-
86-
```
87-
vercel pull
88-
```
89-
90-
2. build
91-
92-
```
93-
vercel build
94-
```
95-
96-
3. start(not work)
97-
98-
```
99-
vercel dev
81+
./dev.sh
10082
```
10183

10284
# Structure
@@ -108,4 +90,4 @@ Have fun and enjoy!
10890

10991
You can contribute simplely by create a pull request for me
11092

111-
For detailed explanation on how things work, please visit [author's blog](https://terwergreen.com).
93+
For detailed explanation on how things work, please visit [author's blog](https://blog.terwergreen.com).

‎dev.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
# sudo n 14
4+
5+
cd jvue-server
6+
./mvnw clean spring-boot:run -Dspring-boot.run.profiles=dev -DskipTests &
7+
8+
cd ../jvue-front
9+
yarn dev

0 commit comments

Comments
 (0)
Please sign in to comment.