Skip to content

qualman/words-from-the-piazza

Folders and files

NameName
Last commit message
Last commit date

Latest commit

958b802 · Feb 8, 2023

History

3 Commits
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023
Feb 8, 2023

Repository files navigation

Words from the Piazza

Author: Jason Qualman (@qualman)

Setup

Prerequisites

  • Docker
  • Ruby 3.2.0
  • bundler 2.4.6

Get ready

cp .env.template .env

Start server

docker build -t wftp .
docker run -p 3000:3000 wftp

Get a madlib

curl 0.0.0.0:3000/madlib

Shutdown server

Ctrl-C

Run tests

bundle exec rspec

Run outside docker

bundle exec rails s

Todo

Short term

  • Add/extend unit tests for
    • Madlib controller
    • Madlib model
    • Madlib fetcher requests
    • Madlib routing
  • Add error handling for non-200 responses from Madlib word server
  • Redirect visits to root address to /madlib

Long term

  • Add database/ActiveRecord usage, caching

Thank you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages