Simple description of what your project does or how to use it.
- Java
- Node.js
- npm
- Maven
- Mockito
- JUnit
git clone https://github.com/ocadotechnology-university/Robimy-dobro---aukcje.git- Go to the Service Accounts page
- Select your project
- Click the service account name to open its details (or click "Create service account")
- Copy the email
- Go to Google Sheets
- Create or select a spreadsheet
- Click Share, input the service account email, and grant editing rights
- Go to Google Drive
- Create or select a folder
- Click Manage Access, input the service account email, and grant editing rights
- Go to the Credentials page
- Select your project
- Click the OAuth 2.0 Client ID (or create one via "Create Credentials" → "OAuth Client ID")
- Add frontend server URIs to Authorized JavaScript origins
- Add the frontend redirect URI with
/login/oauth2/code/googleto Authorized redirect URIs
We use multi-stage build for frontend and backend servers and it defaults to production stage for both.
If you want frontend server for development put development in target as shown below:
frontend:
build:
target: developmentEdit your environment variables inside docker-compose.yml:
args:
GOOGLE_SHEET_ID: "your_sheet_id"
GOOGLE_CLIENT_ID: "your_client_id"
GOOGLE_CLIENT_SECRET: "your_client_secret"
GOOGLE_DRIVE_FOLDER_ID: "your_folder_id"
environment:
GOOGLE_SHEET_ID: "your_sheet_id"
GOOGLE_CLIENT_ID: "your_client_id"
GOOGLE_CLIENT_SECRET: "your_client_secret"
GOOGLE_DRIVE_FOLDER_ID: "your_folder_id"
volumes:
- ./path/to/credentials.json:/app/credentials.json:ro- Go to Google Sheets
- Open your sheet
- From the URL, copy the part between
/d/and/edit
Example:
https://docs.google.com/spreadsheets/d/1V9CZ4xpPTK62CWPdmU9G-dmbPsBcdp-Uho1Lti1kCLc/edit#gid=0
ID: 1V9CZ4xpPTK62CWPdmU9G-dmbPsBcdp-Uho1Lti1kCLc
- Go to Google Drive
- Open your folder
- From the URL, copy the ID after
folders/
Example:
https://drive.google.com/drive/u/1/folders/1uMOLYx8nVjSZ9188WtY7WbCsnQvPcTYr
ID: 1uMOLYx8nVjSZ9188WtY7WbCsnQvPcTYr
- Go to the Credentials page
- Select your project
- Click your OAuth 2.0 Client ID
- Copy the Client ID and Client Secret
- Go to the Service Accounts page
- Select your project and service account
- Go to the Keys tab
- Click "Add Key" → "Create new key"
- Choose JSON
- Click Create → This will download
credentials.json
Mount it in Docker:
-v path/to/credentials.json:/app/credentials.jsonIn your terminal, run:
docker-compose up --build