{"id":20002806,"url":"https://github.com/babenkoivan/todo","last_synced_at":"2025-06-15T21:04:36.933Z","repository":{"id":184252844,"uuid":"669492117","full_name":"babenkoivan/todo","owner":"babenkoivan","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-09T07:49:05.000Z","size":6083,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T00:24:13.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/babenkoivan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-22T13:03:17.000Z","updated_at":"2024-04-29T13:30:03.000Z","dependencies_parsed_at":"2024-06-21T15:42:12.477Z","dependency_job_id":"1cb3bb5d-c72e-47de-87aa-fa38f34f8302","html_url":"https://github.com/babenkoivan/todo","commit_stats":null,"previous_names":["babenkoivan/todo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/babenkoivan/todo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babenkoivan%2Ftodo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babenkoivan%2Ftodo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babenkoivan%2Ftodo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babenkoivan%2Ftodo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babenkoivan","download_url":"https://codeload.github.com/babenkoivan/todo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babenkoivan%2Ftodo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260049431,"owners_count":22951270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T05:23:08.588Z","updated_at":"2025-06-15T21:04:36.883Z","avatar_url":"https://github.com/babenkoivan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo\n\nThis is a simple todo application written in Go that provides 3 different interfaces to manage your todo list: REST API, GraphQL and gRPC.\n\nThere are 4 different actions available to clients:\n\n* create new user\n* login to the application\n* create new todo\n* get all todos\n\nThe last two actions are user-specific and require authentication, which is based on JWT tokens.\n\n## Configuration\n\nThe application relies on the configuration file, which must be located in the `configs` folder. \nTo create one, just copy `configs/.env.dist` to `configs/.env`.\nYou can adjust the database credentials and the application port, or leave the recommended settings. \n\n## Setup\n\nBefore you start making queries, you need to start a database and an API server of your choice:\n\n```bash\n# start the database\nmake start-db\n\n# start REST API server\nmake start-rest-server\n\n# start GraphQL API server\nmake start-graphql-server\n\n# start gRPC server\nmake start-grpc-server\n```\n\n## Usage\n\nYou can use `Postman` to perform all types of queries: just import desired API definition from `api` folder and create a new collection out of it.\n\nThe default base URL for REST API and GraphQL is `localhost:8080/api`, and `localhost:8080` for gRPC. The authentication token received via `login` action can be provided in the `Authorization` header.\n\nBelow you can find a demonstration of the application using three different interfaces. \n\n### REST API\n\n\u003cimg alt=\"REST API\" src=\"assets/rest.gif\" width=\"830\"/\u003e\n\n### GraphQL\n\n\u003cimg alt=\"GraphQL\" src=\"assets/graphql.gif\" width=\"830\"/\u003e\n\n### gRPC\n\n\u003cimg alt=\"gRPC\" src=\"assets/grpc.gif\" width=\"830\"/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabenkoivan%2Ftodo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabenkoivan%2Ftodo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabenkoivan%2Ftodo/lists"}