Skip to content

A simple Go lang app that helps in sharing a one-time secret password with anyone as a URL.

License

Notifications You must be signed in to change notification settings

udaykirantippireddy/one-time-secret-heroku

Repository files navigation

one-time-secret-heroku

A simple Go lang app which helps is sharing a one time password with others.

Design approach

  • Added 2 modules server and client
    • server - go modules for rest api
    • client - react js - To be added

Infrastructure setup

  • Setup docker

    • Mac - setup docker desktop community edition
    • Run redis on docker. An in-memory database. We will use redis to store secrets and we will also leverage redis EXPIRE to delete secrets based on timeout.
    docker run -p 6379:6379 -d redis 
    docker exec -it <docker image id> /bin/sh
    # redis-cli -- to access redis CLI
    

Running code

Server side

  • Running server side code
    • Make sure you have redis docker up and running before running server side application
    • Navigate to ./server folder
    • Run following cmd go run main.go

About

A simple Go lang app that helps in sharing a one-time secret password with anyone as a URL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published