{"id":38006521,"url":"https://github.com/binhvu3/daily-goals","last_synced_at":"2026-02-03T19:05:29.772Z","repository":{"id":261442147,"uuid":"884000792","full_name":"binhvu3/daily-goals","owner":"binhvu3","description":"React frontend project with Go backend and MongoDB ","archived":false,"fork":false,"pushed_at":"2024-11-19T19:13:42.000Z","size":246,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T05:27:27.527Z","etag":null,"topics":["chakra-ui-react","docker","fiber-framework","go","google-cloud","mongodb","nginx","react","tanstack-react-query","vite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/binhvu3.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":"2024-11-06T00:33:33.000Z","updated_at":"2024-12-03T00:44:40.000Z","dependencies_parsed_at":"2024-11-06T15:55:10.436Z","dependency_job_id":"97b475fd-0b3f-4bac-ac9f-9eb3880dfeac","html_url":"https://github.com/binhvu3/daily-goals","commit_stats":null,"previous_names":["binhvu3/to-do"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binhvu3/daily-goals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhvu3%2Fdaily-goals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhvu3%2Fdaily-goals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhvu3%2Fdaily-goals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhvu3%2Fdaily-goals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binhvu3","download_url":"https://codeload.github.com/binhvu3/daily-goals/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binhvu3%2Fdaily-goals/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["chakra-ui-react","docker","fiber-framework","go","google-cloud","mongodb","nginx","react","tanstack-react-query","vite"],"created_at":"2026-01-16T19:17:12.148Z","updated_at":"2026-02-03T19:05:29.747Z","avatar_url":"https://github.com/binhvu3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# FULL STACK REACT + GO PROJECT w/ DEPLOYMENT TO GOOGLE CLOUD\n![Architecture](/public/architecture.jpg)\n\n## Missing Features\n\n- [ ] Fix nginx reverse proxy in local Dev\n- [ ] Host app on Google Cloud: Cloud Run with Nginx Reverse Proxy as sidecar\n\n## Usage\n\n### Download\n\n```bash\ngit clone https://github.com/binhvu3/to-do.git\ncd to-do\n```\n\n### Add .env file\n\n- EDIT/CREATE .ENV FOR BOTH SERVER + CLIENT DIR BEFORE RUNNING CODE BELOW\n\n```bash\ncd server\necho \"ENV=development\" \u003e\u003e .env\necho \"PORT=5000\" \u003e\u003e .env\necho \"MONGODB_URI= [URI FROM MONGODB]\" \u003e\u003e .env\n\ncd ../client\necho \"VITE_ENV=development\" \u003e\u003e .env\necho \"VITE_PORT=5000\" \u003e\u003e .env\n\n```\n\n### Modifies docker-compose.yml\n\n- Uncomment dockerfile: Dockerfile == production\n- Uncomment dockerfile: Dockerfile.dev == development\n\n### Run\n\nInside `.` directory,\n\n```bash\ndocker compose up\n```\n\n- Build and deploy backend and frontend application. Check react app on `localhost:5173` and `localhost:5000/api/todos`\n\n```bash\ndocker compose up  server # [server or client]\n```\n\n- Open specific services\n\n### Alternative \n\n```bash\ncd server\ndocker build -t to-do-server .\ndocker run -p 5000:5000 to-do-server\n```\n\n- Similar process for client\n\n```bash\ncd client\ndocker build -t to-do-client .\ndocker run -p 5173:5173 to-do-client\n```\n\n### Cleanup\n\n```bash\ndocker compose down\ndocker stop $(docker ps -a -q)\ndocker system prune -a\n```\n\n## References\n\n### Application\n\n- [Go and React Full Stack App – Go Tutorial for Node Developers](https://www.youtube.com/watch?v=lNd7XlXwlho)\n- [How to Deploy a Vite React App using Nginx server?](https://medium.com/@Dev-Mus/how-to-deploy-a-vite-react-app-using-nginx-server-d7190a29d8cd)\n- [Github - Go and Reach Project](https://github.com/burakorkmez/react-go-tutorial/blob/master/client/src/chakra/theme.ts)\n- [Run a Golang, Nginx, and React App in Docker](https://dev.to/shaggyrec/run-a-golang-nginx-and-react-app-in-docker-59kn)\n- [Go Fiber Framework](https://docs.gofiber.io/)\n- [MongoDB Documentation](https://www.mongodb.com/docs/drivers/go/upcoming/quick-reference/)\n- [Chakra Ui](https://v2.chakra-ui.com/docs/styled-system/global-styles)\n- [Tanstack React](https://tanstack.com/query/latest/docs/framework/react/guides/query-options)\n- [Air: Go App live update ](https://github.com/air-verse/air)\n- [Go Installation](https://go.dev/doc/install)\n- [Koyed: Free Hosting Server](https://app.koyeb.com/services/7b76485e-09d2-4dcc-8fec-f6d1a0c4e588/settings)\n- [DockerHub](https://hub.docker.com/_)\n- [Dockerizing a React application with Nodejs Postgres and NginX dev and prod step by step](https://youtu.be/-pTel5FojAQ?t=1765)\n\n### Google Cloud\n\n- [Frontend proxying using Nginx](https://cloud.google.com/run/docs/internet-proxy-nginx-sidecar#yaml_3)\n- [Building Containers](https://cloud.google.com/run/docs/building/containers)\n- [Cloud Run now supports sidecar deployments — monitoring agents, proxies and more](https://cloud.google.com/blog/products/serverless/cloud-run-now-supports-multi-container-deployments)\n- [Securing Cloud Run services tutorial - Connect Frontend w/ Backend](https://cloud.google.com/run/docs/tutorials/secure-services#run-clone-sample-repository-go)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhvu3%2Fdaily-goals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinhvu3%2Fdaily-goals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinhvu3%2Fdaily-goals/lists"}