Local Flask service that:
- receives JSON
- generates a Japanese PDF notice in memory
- uploads the PDF to monday.com
- is prepared for Cloud Run deployment
app.py: backend APIlocal_tester.html: standalone browser UI for local/manual testingsample_request.json: sample API payloadmonday_config.example.json: safe example config for local monday setupProcfile: Cloud Run source deploy entrypoint
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
PORT=5001 python app.pyThen open local_tester.html in your browser and set:
Backend URL=http://127.0.0.1:5001
Do not commit real secrets.
Create a local file named monday_config.json by copying:
cp monday_config.example.json monday_config.jsonThen fill in:
api_tokenboard_idfile_column_id
POST /generate-pdf
Example:
curl -X POST http://127.0.0.1:5001/generate-pdf \
-H "Content-Type: application/json" \
--data @sample_request.jsonThis repo is prepared for Cloud Run source deploy:
- Python version pinned in
.python-version - production server in
requirements.txt - startup command in
Procfile - local secret file excluded in
.gcloudignore
For Cloud Run, prefer environment variables and Secret Manager instead of monday_config.json.
git init -b main
git add .
git commit -m "Initial commit"Then create a GitHub repo and connect it:
git remote add origin https://github.com/YOUR-USER/YOUR-REPO.git
git push -u origin mainIf a real monday token was ever pasted into local files, terminal history, or chat, rotate it before production use.