GithubHelp home page GithubHelp logo

aqua-puzzles's Introduction

twiliopuzzles

Texting answer submission system for MIT Aquarium Puzzlehunt.

Instructions

Fork this repository to your github account.

Make a copy of the latest run file, rename it to the current year, and update all puzzle answers and hint text.

Go to twilio.com and make an account

Click "Buy a number" and purchase a number with SMS capabilities (I used 234-AQUA-PUZ)

Use https://cloud.mongodb.com/ to set up a free mongo db, make databse called "aqua" with collections "teams" and "subans"

Click "connect", set IP address to all, and create a database user.

Copy the connection string to the run file for the year. It should look like: "client = MongoClient(connectionstring)"

Follow this tutorial to set up server: https://aws.amazon.com/blogs/aws/app-runner-from-code-to-scalable-secure-web-apps/

Build settings

Runtime

Python 3

Port

5000

Build command

pip install -r requirements.txt

Start command

flask run --host=0.0.0.0

Service settings

Environment Variables

FLASK_APP=run20XX.py

No need to add custon domain, although you can if you wish.

Your domain is available in Service overview under Default domain.

Change the Twilio webhook for messaging to be https://<your_domain>.awsapprunner.com/ and set to HTTP POST

To test sending a message, you can either text the number from your phone, or go to https://<your_domain>.awsapprunner.com/?From=testnumber&Body=testmessage to test just the server.

https://<your_domain>.awsapprunner.com/allteams.txt gives you all the teams and when they started

https://<your_domain>.awsapprunner.com/answers.txt gives you all submitted answers for each puzzle

https://<your_domain>.awsapprunner.com/solvedpuzzles.txt gives you stats for puzzle solves

aqua-puzzles's People

Contributors

beeshi avatar cjquines avatar wishdasher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.