This is the api service of batnoter application built with golang.
It exposes ReST endpoints to access and manage markdown notes from user's git repository. Currently it only supports github repository for storing & managing notes.
- Go version
1.18or above - Docker Desktop
Below commands use docker to start the database container.
make network
make postgres
make createdbThe config.yaml is the configuration template file containing default config values.
cp config.yaml .config.yamlApplication uses .config.yaml file to get the config values. Please update placeholder-values from this config file to the actual ones.
Make sure that the .config.yaml file is configured correctly & database container is up & running.
Then run the below commands to setup the db schema and start the web server.
go run main.go migrateup
go run main.go serveThis will start the server on port specified in .config.yaml file. You can now access the api endpoints.
go test -v -cover ./...This will execute all the tests and also prints the code coverage percentage.
Every Contribution Makes a Difference
Read the Contribution Guidelines before you contribute.