Giter Site home page Giter Site logo

cryptic-hunt's Introduction

Cypher- The Cryptic Hunt

A full stack website to host and deploy online cryptic/treasure hunts

Built with:

1. How to setup

  • Clone or download the repository.
    git clone [email protected]:elit-altum/Cryptic-Hunt.git
    
  • Get a hosted mongoDB Atlas Cluster (Learn More Here)
  • Create a config.env file on the root of the project and create the following variables there :
    MONGO_SRV=<SRV string provided while hosting the cluster>
    
    JWT_SECRET=<any 32 character string for encoding JWTs>
    
    <Just copy paste the following lines>
    JWT_EXPIRE=7d
    COOKIE_EXPIRE=7
    
  • Host the created app on Heroku or Netlify for free. (Learn More Here)
  • Do provide the config.env variables as heroku environment variables as well.

2. Creating an admin

  • Create/register a new user for yourself using the frontend using the /signupAdmin route.
  • Access this user document on the Mongo cluster on the users collection of the database and make sure you set the role value as "admin" to grant you admin privileges.

3. Adding Questions

  • After you have promoted yourself to an admin, enter the questions on the /newQuestion route, which will only accept a question if you are an admin, otherwise will reject it.
  • Make sure you add the level numbers correctly.

Happy Crypting! โœจ

cryptic-hunt's People

Contributors

elit-altum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cryptic-hunt's Issues

Need Help

Hey, I was trying to set this up & require some help. Can you help me? And if you are on other platforms(discord/telegram) then it would be better.

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.