Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 2.42 KB

README.md

File metadata and controls

76 lines (57 loc) · 2.42 KB

Kugga

Build Status

中文简介

Example

This site is based on this project ———— kugga-app.

How to start

Clone this repository to your machine.

git clone [email protected]:Kugga-OSS/Kugga.git

cd Kugga

if you just want to test this project in your windows machine, set these environment variables firstly,

DATABASE_HOST="localhost"        // mysql server host
DATABASE_PORT="3306"             // mysql server port
DATABASE_USERNAME="root"         // mysql server user 
DATABASE_PASSWORD="123"          // mysql server password
REDIS_HOST="localhost"           // redis server id
REDIS_PORT="6379"                // redis server post
JWT_SECRET_KEY="random_string"   // json web token`s secret key
OSS_ENDPOINT=""                  // aliyun OSS Bucket` endpoint
ALI_KEY_ID=""                    // aliyun RAM Key Id
ALI_KEY_SECRET=""                // aliyun RAM Key Secret
BUCKET_NAME=""                   // OSS Bucket name
AVATAR_FOLDER_URL=""          // avatar storage location on ${BUCKET_NAME},for example
 —— "avatar/"

if you want to deploy it to a linux machine, you can modify the init_variable.sh(on the root of the project) to your own setting, and transfer this file to your linux machine. Then run the following commands.

chmod u+x init_variable.sh

./init_variable.sh

What dependencies you need

You need

  1. JDK1.8 environment
  2. Maven 3+
  3. MySQL database(and create a database named kugga)
  4. Redis server

I recommend you could install MySQL and Redis with docker or just use remote linux machine.

Run it

Basic way After finishing all the prepare works, run the following command to init your mysql database and start server !!!

cd kugga-services

mvn flyway:migrate

cd kugga

mvn clean install

cd kugga-starter/target

java -jar kugga-starter-1.0.0.jar

If you don`t want to interactive with kugga.app. open examlpe/client.html in your browser, you could use this demo to interactive with this server.

Use Docker Docker-compose is preparing!

More development plan, you could see in here.

License

MIT License.