Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

vss365today/api

Repository files navigation

#vss365 today API

REST API for #vss365 today

Required Configuration

  • Flask secret key (SECRET_KEY_API)
  • MariaDB instance + login keys (DB_USERNAME, DB_PASSWORD, DB_HOST, DB_DBNAME)
  • Mailgun API key authorized domain and mailing list address (MG_API_KEY, MG_DOMAIN, MG_MAILING_LIST_ADDR)
  • Twitter API v2 bearer token (TWITTER_BEARER)
  • Archive download directory (DOWNLOADS_DIR)
  • Prompt static images directory + temporary directory (IMAGES_DIR, IMAGES_DIR_TEMP)

Install

  1. Install Python 3.10+ and Poetry 1.3.0+
  2. Set missing configuration keys in appropriate configuration/*.json files
  3. Run poetry install
  4. Launch the app using the provided VS Code launch configuration

Note: when running in development mode, all email sending will be disabled and all email-related operations will pretend that they succeeded.

Build

  1. docker build -t vss365today-api:latest .

License

2019-2023 Caleb

MIT