{"id":18737356,"url":"https://github.com/murilobsd/mup-mail","last_synced_at":"2025-08-01T13:05:35.436Z","repository":{"id":75173132,"uuid":"431288131","full_name":"murilobsd/mup-mail","owner":"murilobsd","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-28T22:32:59.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T02:50:37.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murilobsd.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,"zenodo":null}},"created_at":"2021-11-23T23:44:16.000Z","updated_at":"2021-11-28T22:33:02.000Z","dependencies_parsed_at":"2023-06-05T15:30:33.184Z","dependency_job_id":null,"html_url":"https://github.com/murilobsd/mup-mail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/murilobsd/mup-mail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobsd%2Fmup-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobsd%2Fmup-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobsd%2Fmup-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobsd%2Fmup-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murilobsd","download_url":"https://codeload.github.com/murilobsd/mup-mail/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobsd%2Fmup-mail/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268229238,"owners_count":24217009,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T15:24:52.272Z","updated_at":"2025-08-01T13:05:35.422Z","avatar_url":"https://github.com/murilobsd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mup-mail\n\nMup mail micro service based on hexagonal architecture and rust language\n\n## Development\n\n- rust stable\n- rustfmt (lint)\n- clippy (lint)\n- pre-commit (scripts pre commit)\n- typos (source code spell checker)\n- committed (enforce commit standards)\n\ninstall pre-commit\n\n```\npip install --user pre-commit\n```\n\nor archlinux pacman:\n\n```\nsudo pacman -S python-pre-commit\n```\n\ninstall git-hooks script:\n\n```\npre-commit install\n```\n\ninstall typos\n\n```\ncargo install typos-cli\n```\n\nor arch linux (aur):\n\n```\nparu -S typos-bin\n```\n\ninstall committed\n\n```\ncargo install committed\n```\n\n### Terraform\n\ncreate S3 bucket for storing terraform remote state\n\n```\nREGION=us-east-1\nS3_NAME=mup-terraform-state\naws s3api create-bucket --bucket $S3_NAME --region $REGION\n```\n\nExecute apply without lock:\n\n```\nterraform apply -lock=false\n```\n\n### Docker-compose\n\ncreate network\n\n```\ndocker network create mup-network\n```\n\ncreate volumes folder to persite database data\n\n```\nmkdir -p volumes/db-data/\nmkdir -p volumes/redis-data/\n```\n\n```\ncp .env_example .env\n```\n\n```\ndocker-compose up\n```\n\n[access adminzer (web client) postrgresql](http://localhost:8081)\n\n### Sqlx\n\n\n```\n# install\ncargo install sqlx-cli --no-default-features --features postgres\n\n# create db\nsqlx database create\nsqlx database drop\n\n# migrate\nsqlx migrate add -r \u003cname\u003e\nsqlx migrate run\nsqlx migrate revert\n\n# build off line\ncargo sqlx prepare\ncargo sqlx prepare --check\n```\n\n### Extension\n\n```sql\ncreate extension \"uuid-ossp\";\ncreate extension citext;\n```\n\n[For sql to Rust, you can cast to text: (\u003cthing\u003e::TEXT), for Rust to sql, you can help it figure out that it wants text and then cast it to citext: $1::TEXT::CITEXT](https://github.com/launchbadge/sqlx/issues/295#issuecomment-720100514)\n\nhttps://argon2.online/\n\n### Benchmark\n\ninstall drill:\n\non archlinux:\n\n```\nparu -S drill \n```\n\nor via cargo:\n\n```\ncargo install drill\n```\n\nexecute:\n\n```\ndrill-rs --benchmark benchmark.yml --stats\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurilobsd%2Fmup-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurilobsd%2Fmup-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurilobsd%2Fmup-mail/lists"}