Git Product home page Git Product logo

treasure-hunt-final-step's Introduction

Simple react app for a treasure hunt created for my friends.

This web app is deployed automatically on Heroku using this action and is available at king-treasure-hunt.herokuapp.com .

Not my best code, but I need something as fast as I can.

I decided to only run the app (and not build it) in the Dockerfile because I need to keep secret the keys to win, even if my friends come here to cheat; to obtain this in the fastest way possible without having to create a backend server to verify keys, I decided to store the keys in environment variables (that are not reachable from a built react app... or at least I wasn't able to).
Said variables are set directly on Heroku (or in the docker-compose file).

There are the environment variables to keep in mind while using this web app (all starting with REACT_APP due to React environment variables restrictions):

  • REACT_APP_FIRST_KEY, REACT_APP_SECOND_KEY, REACT_APP_THIRD_KEY, REACT_APP_FOURTH_KEY:
    In the landing page there are 4 textboxes that corresponds to this four variables.
  • REACT_APP_FINAL_KEY:
    Once the fist 4 keys are guessed, there will be another textbox to input the final key.
  • REACT_APP_FINAL_PAGE_TEXT:
    Message for the winners.

There are also 3 additional variables used to set parameters to send an email when a step is completed. You don't need to specify them, the mail simply won't be sent.
If you want to send a mail, here is a tutorial of what you need to do.

  • REACT_APP_EMAILJS_USER_CODE
  • REACT_APP_MID_MAIL_TEMPLATE
  • REACT_APP_FINAL_MAIL_TEMPLATE

treasure-hunt-final-step's People

Contributors

tale152 avatar

Watchers

 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.