{"id":20930004,"url":"https://github.com/toannd96/theodoiweb","last_synced_at":"2026-02-18T11:03:28.240Z","repository":{"id":214279997,"uuid":"490740315","full_name":"toannd96/theodoiweb","owner":"toannd96","description":"Theodoiweb v1.0 - phân tích hành vi người dùng trên website","archived":false,"fork":false,"pushed_at":"2024-09-25T16:28:07.000Z","size":46937,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T13:28:14.325Z","etag":null,"topics":["bootstrap5","gin-gonic","golang","mongodb","rrweb","session-recorder","session-replay"],"latest_commit_sha":null,"homepage":"https://theodoiweb.fly.dev","language":"CSS","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/toannd96.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":"2022-05-10T14:45:58.000Z","updated_at":"2024-09-25T16:40:27.000Z","dependencies_parsed_at":"2025-01-19T19:02:37.373Z","dependency_job_id":null,"html_url":"https://github.com/toannd96/theodoiweb","commit_stats":null,"previous_names":["toannd96/theodoiweb-v1","toannd96/theodoiweb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toannd96/theodoiweb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toannd96%2Ftheodoiweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toannd96%2Ftheodoiweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toannd96%2Ftheodoiweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toannd96%2Ftheodoiweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toannd96","download_url":"https://codeload.github.com/toannd96/theodoiweb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toannd96%2Ftheodoiweb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"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":["bootstrap5","gin-gonic","golang","mongodb","rrweb","session-recorder","session-replay"],"created_at":"2024-11-18T21:28:23.301Z","updated_at":"2026-02-18T11:03:28.218Z","avatar_url":"https://github.com/toannd96.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup\n\n### Install dependencies\n\n- [golang version 1.18](https://go.dev/doc/install)\n- [mongodb on ubuntu 20.04](https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-20-04)\n- [setup mongodb atlas](https://www.mongodb.com/developer/how-to/use-atlas-on-heroku/)\n\n## Project structure\n\nReferring from these repositories\n\n- https://github.com/bxcodec/go-clean-arch\n- https://github.com/golang-standards/project-layout\n\n## Running\n\n### Run locally\n\n- Copy .env.example to .env and update .env file to suit your local environment\n- Run\n\n```\ngo run main.go\n```\n\n## Folder structure\n\n```\n.\n├── configs\n│   └── configs.go\n├── db\n│   ├── mongo.go\n│   └── redis.go\n├── Dockerfile\n├── fly.toml\n├── go.mod\n├── go.sum\n├── internal\n│   ├── app\n│   │   ├── auth\n│   │   │   ├── repository.go\n│   │   │   └── usecase.go\n│   │   ├── session\n│   │   │   ├── delivery.go\n│   │   │   ├── delivery_http.go\n│   │   │   ├── model.go\n│   │   │   ├── repository.go\n│   │   │   └── usecase.go\n│   │   ├── user\n│   │   │   ├── delivery.go\n│   │   │   ├── delivery_http.go\n│   │   │   ├── model.go\n│   │   │   ├── repository.go\n│   │   │   └── usecase.go\n│   │   └── website\n│   │       ├── delivery.go\n│   │       ├── delivery_http.go\n│   │       ├── model.go\n│   │       ├── repository.go\n│   │       └── usecase.go\n│   └── pkg\n│       ├── duration\n│       │   ├── duration.go\n│       │   └── duration_test.go\n│       ├── geodb\n│       │   ├── geodb.go\n│       │   └── GeoLite2-City.mmdb\n│       ├── middleware\n│       │   ├── cors.go\n│       │   └── jwt.go\n│       ├── security\n│       │   ├── access_token.go\n│       │   ├── password.go\n│       │   ├── password_test.go\n│       │   ├── refresh_token.go\n│       │   └── token.go\n│       └── string\n│           ├── string.go\n│           └── string_test.go\n├── main.go\n├── README.md\n└── web\n    ├── static\n    │   ├── assets\n    │   │   └── img\n    │   │       ├── error-404-monochrome.svg\n    │   │       └── home_replay.png\n    │   ├── css\n    │   │   └── styles.css\n    │   └── js\n    │       ├── record.js\n    │       └── scripts.js\n    └── templates\n        ├── 401.html\n        ├── 404.html\n        ├── 500.html\n        ├── dashboard.html\n        ├── footer.html\n        ├── header.html\n        ├── heatmaps.html\n        ├── home.html\n        ├── layout_side_nav.html\n        ├── layout_top_nav.html\n        ├── login.html\n        ├── not_record.html\n        ├── not_record_today.html\n        ├── not_website.html\n        ├── profile.html\n        ├── register.html\n        ├── tables.html\n        ├── tracking.html\n        ├── video.html\n        ├── website.html\n        └── websites.html\n```\n\n## Deploy app to heroku\n \n```\n$ heroku login\n$ heroku config:add TZ=\"Asia/Ho_Chi_Minh\"\n$ heroku addons:create heroku-redis:hobby-dev\n$ heroku config --app nameapp\n\n$ cd my-project/\n$ git init\n$ heroku git:remote -a nameapp\n$ heroku stack:set container\n$ git status\n$ git add .\n$ git commit -am \"make it better\"\n$ git push heroku master\n$ heroku ps:scale web=1\n$ heroku logs --tail\n```\n### Key features\n- Home page\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/homepage.png)\n\n- Sign up\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/signup.png)\n\n- Sign in\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/signin.png)\n\n- Profile\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/profile.png)\n\n- Add website\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/add_website.png)\n\n- List website\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/list_website.png)\n\n- Add tracking code \n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/add_tracking_code.png)\n\n- Generate tracking code \n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/tracking_code.png)\n\n- Records\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/records.png)\n\n- Replay\n\n![](https://github.com/dactoankmapydev/analytics-app/blob/master/picture/replay.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoannd96%2Ftheodoiweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoannd96%2Ftheodoiweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoannd96%2Ftheodoiweb/lists"}