{"id":16239124,"url":"https://github.com/xtrinch/go-react-todo","last_synced_at":"2025-03-16T12:32:39.550Z","repository":{"id":66146897,"uuid":"66871130","full_name":"xtrinch/go-react-todo","owner":"xtrinch","description":"Todo REST API written in Go, React frontend client, setup using docker \u0026 docker-compose.","archived":false,"fork":false,"pushed_at":"2024-09-13T11:26:16.000Z","size":13141,"stargazers_count":39,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T09:12:40.930Z","etag":null,"topics":["docker","go","react","todo-app"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtrinch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-08-29T18:51:08.000Z","updated_at":"2024-09-13T11:26:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"c35d323b-305a-43c8-aae6-72687dc4be37","html_url":"https://github.com/xtrinch/go-react-todo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fgo-react-todo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fgo-react-todo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fgo-react-todo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrinch%2Fgo-react-todo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtrinch","download_url":"https://codeload.github.com/xtrinch/go-react-todo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814867,"owners_count":20352052,"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":["docker","go","react","todo-app"],"created_at":"2024-10-10T13:42:24.634Z","updated_at":"2025-03-16T12:32:39.180Z","avatar_url":"https://github.com/xtrinch.png","language":"JavaScript","readme":"# go-react-todo\n\n    - Todo REST API in Go\n    - React frontend client with Redux.\n    - Setup with docker \u0026 docker-compose.\n\nDatabase library for postgres is [Gorp](https://github.com/go-gorp/gorp),\nlivereloading goes to [codegangsta/Gin](https://github.com/codegangsta/gin),\nHTTP framework used is [gin-gonic/gin](https://github.com/gin-gonic/gin).\n\nDocker-compose file contains the definition for three containers -\ndatabase (postgres), backend (Go) and frontend (React).\n\n## Requirements\n\n- docker\n- docker-compose\n\n## Development setup:\n\n    $ docker-compose up\n\nFind your docker-machine IP by running\n\n    $ docker-machine env default\n\nGo todo API (backend) can be accessed at port 8080, webpack-dev-server\n(react frontend) at 9000.\nRequests from webpack-dev-server are proxied to the Go container by\nwebpack conifig.\nLive reloading is provided by codegangsta/Gin.\n\n## Production setup:\n\nIn production livereloading of Go code and a frontend container are not needed. There are now only three containers: postgres database, go backend and a nginx container. A separate docker-compose file is used, as seen below. Run the following scripts in your cloned git directory:\n\n    # will create build/ directory in ../nginx/, where it is then \n    # mounted into nginx container to be served as static files\n    $ cd client/ \u0026\u0026 npm run-script build \n    $ cd ../ \u0026\u0026 docker-compose -f docker-compose.prod.yml up -d\n\nYou server container will be listening at port 8002 as exposed in docker-compose.prod.yml.\n\n## API endpoints\n\n- **GET** api/v1/todos/\n- **GET** api/v1/todos/:id\n- **POST** api/v1/todos\n- **PUT** api/v1/todos/:id\n- **DELETE** api/v1/todos/:id\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtrinch%2Fgo-react-todo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtrinch%2Fgo-react-todo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtrinch%2Fgo-react-todo/lists"}