-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
77 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[](https://github.com/jinganix/guess/actions/workflows/ci.yml) | ||
[](http://www.apache.org/licenses/LICENSE-2.0.html) | ||
|
||
# Guess | ||
|
||
The source code of the 'Guess Who I Am' Wechat miniprogram | ||
|
||
## Run | ||
|
||
### Backend | ||
|
||
#### Linux or MacOS | ||
|
||
```shell | ||
git clone git@github.com:jinganix/guess.git | ||
cd guess/service/guess | ||
./gradlew service:guess:bootRun --args='--core.weapp.app-id=? --core.weapp.app-secret=? --core.url.db-mysql=? --spring.datasource.username=? --spring.datasource.password=?' | ||
``` | ||
|
||
#### Windows | ||
|
||
Replace `./gradlew` with `./gradlew.bat` | ||
|
||
#### Description | ||
|
||
- core.weapp.app-id: `app-id` of the Wechat miniprogram | ||
- core.weapp.app-secret: `app-secret` of the Wechat miniprogram | ||
- core.url.db-mysql: Mysql connection url,e.g. `jdbc:mysql://127.0.0.1:3306/guess` | ||
- spring.datasource.username: Mysql connection username | ||
- spring.datasource.password: Mysql connection password | ||
|
||
### Frontend | ||
|
||
#### Execute commands | ||
|
||
```shell | ||
git@github.com:jinganix/guess.git | ||
cd guess/frontend/weapp | ||
npm install | ||
npm start | ||
``` | ||
|
||
#### Wechat devtools | ||
|
||
1. Import`guess/frontend/weapp/dist` into Wechat devtools | ||
2. Disable domain verification | ||
|
||
<img src="docs/devtools.setting.png" alt="Image" width="381" height="576"> | ||
|
||
## Scan to experience | ||
|
||
<img src="docs/qrcode.jpg" alt="Image" width="300" height="300"> | ||
|
||
## Contributing | ||
|
||
If you are interested in reporting/fixing issues and contributing directly to the code base, please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information on what we're looking for and how to get started. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.