Create a GitLab application with the openid scope and a redirect to http://localhost:3000/callback. Ensure "Confidential" is unchecked. You can create the application on https://<yourgitlabdomain>/-/profile/applications
Copy the .env.example file to .env and fill in the values. The API key can be anything, and the DSN is in the following format: postgres://<username>:<password>@<host>:<port>/<database>. For example: postgres://ssot:password@localhost/ssotdb
Installation and running
Clone and enter the repository: git clone https://github.com/2zqa/ssot-specs-server.git && cd ssot-specs-server
Run go install ./cmd/api
Run api
License
SSOT specifications server is licensed under the MIT license.
Acknowledgements
Voys for facilitating the internship where this project was developed
Alex Edwards for providing an excellent resource on building an API with Go, Let's Go Further!, upon which this project is based