A simple Go lang app which helps is sharing a one time password with others.
- Added 2 modules server and client
- server - go modules for rest api
- client - react js -
To be added
-
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 leverageredis 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 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