BlockCloud is a Spring Boot-based backend service designed to support the core functionalities of the BlockCloud application.
git clone https://github.com/your-username/blockcloud-backend.git
cd blockcloud-backend
./gradlew bootRun
Visit: http://localhost:8080
# Run in development environment
docker-compose --profile dev up -d
# Run in production environment
docker-compose up -d
-
Configure GitHub Secrets:
HOST
: Server IP addressUSERNAME
: SSH usernameSSH_KEY
: SSH private keyPORT
: SSH port (default: 22)
-
Push to the main branch to trigger automated deployment.
# Run the deployment script
chmod +x scripts/deploy.sh
./scripts/deploy.sh production latest
Create a .env
file at the project root and set the following variables:
# Spring Boot profile
SPRING_PROFILES_ACTIVE=dev
# Database settings
SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/blockcloud_dev
SPRING_DATASOURCE_USERNAME=blockcloud
SPRING_DATASOURCE_PASSWORD=password
# JWT settings
JWT_SECRET=your-jwt-secret-key-here
JWT_EXPIRATION=86400000
# OAuth2 settings
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
This project is licensed under the MIT License.