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

Latest commit

 

History

History
27 lines (20 loc) · 1.26 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.26 KB

Gasconade

build

n. extravagant boasting; boastful talk

In this context, it's a Rust web app for making blog posts for Twitter users who apparently think that 100-item threads are readable.

Live instance is at https://gasconade.tevp.net/

Local running

  1. Have a Postgres database, and set environment variable DATABASE_URL to a login for that.
    • Easiest way is with Docker, using docker run -P -d postgres:12.1 and then export DATABASE_URL=postgresql://postgres:postgres@localhost:<port> where you can get port from docker ps
  2. Install Rust
  3. Copy config.yaml.example to config.yaml and replace key/secret with keys from a Twitter app you've registered
  4. cargo run
  5. Open http://localhost:8000

Heroku running

  1. Get the Heroku CLI
  2. heroku create --buildpack https://github.com/emk/heroku-buildpack-rust.git
  3. Add Heroku Postgres
  4. Set TWITTER_KEY and TWITTER_SECRET config vars as per key/secret from local running