Skip to content

sottenad/jService

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

jService

The costs for running jservice have gone up to approx $200/yr. If you get value from this project, please consider pitching in a few dollars to keep it running

Help Support jservice or venmo @steve-ottenad

Demo

View a working demo at http://jservice.io

Requirements

  • Ruby 3.1+
  • Postgres

Installation

  • clone this repo
  • In terminal, cd into the directory you cloned into
  • run bundle install
  • set up the database:
    • run postgres
    • createuser -P -d steveo (password stepheno)
    • rails db:create
    • rake db:create
  • run rails s
  • run rake 'get_clues[1,38]' -- NOTE: this will grab approx 200K clues and takes hours. The arguments here are the range of season you want to grab. You can save some time and grab selected seasons by doing something like rake get_clues[20,31], which would only get seasons 20 through 31
  • visit http://localhost:3000/api/random or view config\routes.rb file for more
  • shoot me a pull request to the readme with your app in the wild!

jService in the wild

About

A set of simple trivia service that serves the answers/questions pulled from jArchive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published