Skip to content

Source code for Riddle Locker, the website where you can hide information behind riddles!

Notifications You must be signed in to change notification settings

ConnorGoodman/RiddleLocker

Repository files navigation

Riddle Locker!

Riddle Locker is a side project I'm working on! It lets users lock text behind "Riddles".

Riddles are prompts other users must solve to gain access to the locked text. Head over to here to try it out!

I built this using Azure Static Web apps. It has a React frontend and an Azure Function backend. Data is stored in Azure Table Storage.

Thanks for trying it out!

Installation

Prerequisites

  • Node JS
  • Visual Studio Code (Optional)
  • Azure Static Web Apps Extension for Visual Studio Code (Optional)

Steps

  1. Clone the Riddle Locker repository. git clone https://github.com/ConnorGoodman/RiddleLock.git
  2. Open the Riddle Lock folder in your code editor.
  3. Run npm install -g @azure/static-web-apps-cli in the terminal.
  4. Run npm install
  5. Run npm run build
  6. Update secrets. TODO - More detailed instructions on secrets.
  7. Finally, to emulate Azure Static Web Apps locally, run swa start build --api-location api. The first time this is ran, Function Core Tools will be automatically installed.
  8. Configure app secrets. In the api folder, create a file called local.settings.json. Then, fill in the secrets. Here is an exanple: { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "", "FUNCTIONS_WORKER_RUNTIME": "node", "accountkey": "", "accountname": "", "baseurl":"http://localhost:4280/", "tablename":"" } }

Troubleshooting

Resources

https://learn.microsoft.com/en-us/azure/static-web-apps/getting-started?tabs=react
https://learn.microsoft.com/en-us/azure/static-web-apps/add-api?tabs=react

TODO

  • Update images throughout website.

Future Enhancements?

  • Login system.
  • Ability to edit/ delete riddles.
  • Better riddle search.
  • Hide images/ clickable links behind riddles.

Feel free to send me feedback or feature suggestions!

About

Source code for Riddle Locker, the website where you can hide information behind riddles!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published