Skip to content

Latest commit

 

History

History
87 lines (55 loc) · 2.85 KB

README.en.md

File metadata and controls

87 lines (55 loc) · 2.85 KB

CI License

中文版本

Guess

The source code of the 'Guess Who I Am' Wechat miniprogram, you can scan to experience the miniprogram

  • Frontend development using TypeScript with webpack for building and bundling
  • Backend development using Java and Spring framework with Gradle for building and packaging

Running the Project

To run the project, you need to first clone the source code and navigate to the project's root directory.

git clone [email protected]:jinganix/guess.git
cd guess

Backend

Running with docker-compose

  • Modify the application-local.yml file to configure the backend service of the project

  • core.weapp.app-id: The app-id of the WeChat mini-program

  • core.weapp.app-secret: The app-secret of the WeChat mini-program

If you have docker and docker-compose installed, you can start the backend service using the following command:

docker-compose up --build

Running with Gradle

You need to install JDK with the corresponding version specified in .tool-versions and start a MySQL database.

Modify the application-local.yml file to configure the backend services of the project.

  • core.weapp.app-id: The app-id of the WeChat mini-program
  • core.weapp.app-secret: The app-secret of the WeChat mini-program
  • core.url.db-mysql: The connection URL of the MySQL database, e.g., jdbc:mysql://127.0.0.1:3306/guess
  • spring.datasource.username: The database username
  • spring.datasource.password: The database password

The following command can be used to start the backend services on a Linux or macOS system:

./gradlew service:guess:bootRun

The following command can be used to start the backend services on a Windows system:

./gradlew.bat service:guess:bootRun

Frontend

You need to install node.js with the version specified in .tool-versions.

Running the Commands

git clone [email protected]:jinganix/guess.git
cd guess/frontend/weapp
npm install
npm start

Wechat devtools

  1. Importguess/frontend/weapp/dist into Wechat devtools

  2. Disable domain verification

    Image

Scan to experience

Image

Contributing

If you are interested in reporting/fixing issues and contributing directly to the code base, please see CONTRIBUTING.md for more information on what we're looking for and how to get started.