{"id":20621441,"url":"https://github.com/emarifer/flashmessages-demo","last_synced_at":"2026-04-13T21:31:12.451Z","repository":{"id":206994894,"uuid":"718145024","full_name":"emarifer/flashmessages-demo","owner":"emarifer","description":"Full-stack application simple for flash messages demonstration after page redirects, with HTML template rendering and using _hyperscript to handle deletions and transitions CSS from flash messages","archived":false,"fork":false,"pushed_at":"2023-11-13T14:46:50.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-07T19:01:50.003Z","etag":null,"topics":["daisyui","echo-framework","flash-messages","go","golang","hyperscript","jwt-authentication","jwt-go","jwt-middleware","protected-routes","refresh-token","tailwindcss","template-engine","template-engine-html","webapp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emarifer.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}},"created_at":"2023-11-13T13:30:36.000Z","updated_at":"2024-11-15T16:18:23.000Z","dependencies_parsed_at":"2023-11-13T15:56:17.074Z","dependency_job_id":null,"html_url":"https://github.com/emarifer/flashmessages-demo","commit_stats":null,"previous_names":["emarifer/flashmessages-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emarifer/flashmessages-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Fflashmessages-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Fflashmessages-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Fflashmessages-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Fflashmessages-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emarifer","download_url":"https://codeload.github.com/emarifer/flashmessages-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emarifer%2Fflashmessages-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["daisyui","echo-framework","flash-messages","go","golang","hyperscript","jwt-authentication","jwt-go","jwt-middleware","protected-routes","refresh-token","tailwindcss","template-engine","template-engine-html","webapp"],"created_at":"2024-11-16T12:17:52.155Z","updated_at":"2026-04-13T21:31:12.418Z","avatar_url":"https://github.com/emarifer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full Stack Golang Web App – Flash Messages Demo\n\n#### Full-stack application simple for flash messages demonstration after page redirects, with HTML template rendering and using _hyperscript to handle deletions and transitions CSS from flash messages.\n\n#### This is an application developed in Go with the minimalist Echo framework for the backend and the frontend rendering with the native Go template package (html/template). On the other hand, _hyperscript is used to improve the appearance of alert openings and closings. The messages remain for 5 seconds and then are automatically deleted.  Likewise, Tailwind CSS and daisyUI are used from their respective CDNs.\n\n#### For demonstration purposes and to simplify the code, the use of a database is simulated using a function that generates a user (\"Test User\") and its password (\"test\").\n\n#### The application has the expiration time for the token set to 1 hour. This means that after 1 hour the user session will be automatically logged out. This is something we want to avoid, especially if the user is still active and working on our resource. This can be solved by introducing a refresh token. This token will have a much longer lifespan and will be used to refresh the access token.\n\n###### **Note**: the documentations of the Echo framework and the _hyperscript JavaScript library, you can see them [here](https://echo.labstack.com/) and [here](https://hyperscript.org/), respectively.\n\n---\n\n### Screenshots:\n\n###### Login Page with errors alert:\n\n\u003cimg src=\"doc/error_message.png\" width=\"33%\"\u003e\n\n\u003cbr\u003e\n\n###### Admin Page with success alert:\n\n\u003cimg src=\"doc/success_message.png\" width=\"33%\"\u003e\n\n---\n\n### Setup:\n\nBesides the obvious prerequisite of having Go! on your machine, you must have Air installed for hot reloading when editing code.\n\nStart the app in development mode:\n\n```\n$ air # Ctrl + C to stop the application\n```\n\nBuild for production:\n\n```\n$ go build -ldflags=\"-s -w\" -o ./bin/main . # ./bin/main to run the application\n```\n\n### Happy coding 😀!!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femarifer%2Fflashmessages-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femarifer%2Fflashmessages-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femarifer%2Fflashmessages-demo/lists"}