{"id":18326046,"url":"https://github.com/mthaler/guestbook","last_synced_at":"2026-04-29T08:32:33.375Z","repository":{"id":146920184,"uuid":"286657958","full_name":"mthaler/guestbook","owner":"mthaler","description":"A simple guestbook web app implemented in Go and MongoDB","archived":false,"fork":false,"pushed_at":"2020-08-11T16:45:59.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T16:02:13.903Z","etag":null,"topics":["golang","guestbook","mongodb","webapp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mthaler.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":"2020-08-11T05:53:59.000Z","updated_at":"2020-08-11T16:48:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"901a5356-a85d-40ae-ab25-c504d2d39320","html_url":"https://github.com/mthaler/guestbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mthaler/guestbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthaler%2Fguestbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthaler%2Fguestbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthaler%2Fguestbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthaler%2Fguestbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mthaler","download_url":"https://codeload.github.com/mthaler/guestbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthaler%2Fguestbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32417518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["golang","guestbook","mongodb","webapp"],"created_at":"2024-11-05T19:05:37.879Z","updated_at":"2026-04-29T08:32:33.370Z","avatar_url":"https://github.com/mthaler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guestbook\n\nA simple guestbook web app implemented with Go, MongoDB and Bootstrap.\n\n# Design Goals\n\nThe focus of this project is to demonstrate how to implement a simple web app using Go, MongoDB and Bootstrap. Security is not a concern, thus it should not be used on production systems.\n\n# Requirements\n\n## Installing MongoDB\n\nTo build and run the guestbook web app, MongoDB needs to be installed, see https://docs.mongodb.com/manual/installation/\n\nNote: MongoDB is not included in recent versions of Debian, follow the installation instructions above.\n\nMake sure that mongod is started before running the guestbook web app.\n\n## Installing MongoDB Go Driver\n\nThe driver can easily be installed with go get:\n\n```shell script\n$ go get go.mongodb.org/mongo-driver\n```\n\ngo get will print a warning that there are no go files. This can be ignored.\n\n# Usage\n\nUse the following command to run the guestbook web app from the guestbook directory:\n\n```shell script\n$ go run main.go\n```\n\nIf the guestbook application can connect to the MongoDB database, it will print a message, otherwise it will print an error message.\n\nOpen a browser with the following URL:\n\n```\nhttp://localhost:8080/guestbook\n```\n\nAn empty guestbook should now be shown. New comments can be added by clicking on add comment.\n\n# Manipulating the Database\n\nMongoDB includes a shell that can be used to manipulate the database. See the MongoDB documentation for details.\n\nTo delete all comments, stop the guestbook web app and do the following\n\n```\n$ mongo\n\u003e use guestbook\nswitched to db guestbook\n\u003e db.comments.drop()\ntrue\n```\n\nAfter starting the guestbook again, an empty guestbook is shown.\n\n# Credits\n\nThe code is based on the guestbook example from the [Head First Go book](https://headfirstgo.com/).\n\n# License\n\nBSD 3-Clause License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthaler%2Fguestbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmthaler%2Fguestbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthaler%2Fguestbook/lists"}