Go RESTful authentication micro-service
Gram is a standalone authentication server that allows for the creation and management of users across a multitude of services, and creates signed JSON web tokens
- Add GRAM_TOKEN_SECRET="" to your environment
- Add GRAM_ENCRYPTION_KEY="<ANY 16-BYTE STRING>" to your environment
- Create a postgresql database (keep track of your credentials)
- Open the root directory of the project in a terminal window
- Use the command
$ go build
to build the project - Use the command
$ ./gram
to start the program - After following any indicated instructions, the server will start, and API requests can be made
--port number: Use a specific port instead of the default --service name: Specify a specific service name you would like to use instead of the default. This allows for the server to manage user data for multiple services simultaneously