Backend Restful API for storing and retrieving Markdown for markdown snippets.
- Copy of rename
mdsnips.env
to.env
and update the missing environment variables.- MDSNIPS_USER: Basic API Authentication user name.
- MDSNIPS_PASS: Basic API Authentication password.
- MDSNIPS_MONGO_CONN: MongoDB Connection String.
- To run the server, simply execute one fo the following:
or
go run main.go
fresh
Run the following in the project root:
swag init
Swagger documentation is hosted at /swagger/index.html