Development
Vscode configuration
.vscode/settings.json should contain
{
"go.testTags": "integration",
"go.buildFlags": [
"-mod=vendor"
]
}
Deployment
Yandex Disk
- Creates application with app folder permissions here https://oauth.yandex.com/.
- Use any URL as a Callback URL.
- Make a request in browser: https://oauth.yandex.com/authorize?response_type=code&client_id=.
- Allow and copy code after redirect.
- Convert code to token:
curl -X POST -u <client_id>:<password> 'https://oauth.yandex.com/token' -d 'grant_type=authorization_code&code=<code>'
.
- Set up the TOKEN environment variable.