Service to handle JWT and Firebase services. To be accessed from backend.
The configuration file is located in config/config.yml. It provides configuration for
- The port where the service will be listening for requests
- The amount of hours the tokens will be valid for.
go get .
go run .
go test
docker build --tag IMAGE_NAME .
docker run --rm -p 8002:8002 --name CONTAINER_NAME IMAGE_NAME
Where IMAGE_NAME
is the name chosen in the previous step and
CONTAINER_NAME
is a name to identify the container running the app
Notice --rm
tells docker to remove the container after it stops, and
-p 8002:8002
maps the port 8002 in the container to the port 8002 in the host.