{"id":20017755,"url":"https://github.com/vazw/siamstr","last_synced_at":"2025-07-26T00:36:43.068Z","repository":{"id":208962659,"uuid":"722895541","full_name":"vazw/siamstr","owner":"vazw","description":"siamstr.com Nostr Address Provider written in Rust.","archived":false,"fork":false,"pushed_at":"2024-10-02T10:55:06.000Z","size":410,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T13:50:13.884Z","etag":null,"topics":["leptos","nip-05","nip-07","nip-07-wasm","nostr","nostr-wasm","rust","sqlite","sqlx","wasm","wasm-bindgen","web","webserver"],"latest_commit_sha":null,"homepage":"https://siamstr.com","language":"Rust","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/vazw.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":"2023-11-24T07:56:05.000Z","updated_at":"2024-11-21T13:29:42.000Z","dependencies_parsed_at":"2024-05-09T11:28:11.244Z","dependency_job_id":"c98ccdae-e55c-43a7-a2e4-0a08f066548f","html_url":"https://github.com/vazw/siamstr","commit_stats":null,"previous_names":["vazw/siamstr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vazw%2Fsiamstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vazw%2Fsiamstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vazw%2Fsiamstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vazw%2Fsiamstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vazw","download_url":"https://codeload.github.com/vazw/siamstr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252414101,"owners_count":21744041,"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","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":["leptos","nip-05","nip-07","nip-07-wasm","nostr","nostr-wasm","rust","sqlite","sqlx","wasm","wasm-bindgen","web","webserver"],"created_at":"2024-11-13T08:18:20.861Z","updated_at":"2025-05-04T23:30:35.570Z","avatar_url":"https://github.com/vazw.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\n    \u003csource srcset=\"https://github.com/vazw/siamstr/blob/main/docs/pic.png?raw=true\" media=\"(prefers-color-scheme: dark)\"\u003e\n    \u003cimg src=\"https://github.com/vazw/siamstr/blob/main/docs/pic.png?raw=true\" alt=\"siamstr Logo\"\u003e\n\u003c/picture\u003e\n\n# Siamstr Nostr Address Provider\n\n## Running project [![Rust](https://github.com/vazw/siamstr/actions/workflows/rust.yml/badge.svg)](https://github.com/vazw/siamstr/actions/workflows/rust.yml) [![Docker Image CI](https://github.com/vazw/siamstr/actions/workflows/docker-image.yml/badge.svg)](https://github.com/vazw/siamstr/actions/workflows/docker-image.yml)\n\n### Rust Toolchain\n\nYou'll need to use the nightly Rust toolchain, and install the `wasm32-unknown-unknown` target as well as the Trunk and `cargo-leptos` tools:\n\n```\nrustup toolchain install nightly\nrustup target add wasm32-unknown-unknown\ncargo install trunk cargo-leptos\n```\n\n### TailwindCSS\n\nInstall TailwindCSS with `npm install -D tailwindcss`\n\n### Run\n\nTo run the project locally,\n\n1. run `npx tailwindcss -i ./input.css -o ./style/output.css --watch` in a terminal - this will build `style/output.css` and automatically rebuild when a change is detected in `input.css`\n1. `cargo leptos watch` in the project directory.\n1. In in your browser, navigate to [http://localhost:8008/?](http://localhost:8008/?)\n\n## Executing a Server on a Remote Machine Without the Toolchain\n\nAfter running a `cargo leptos build --release` the minimum files needed are:\n\n1. The server binary located in `target/server/release`\n2. The `site` directory and all files within located in `target/site`\n   - css files will be in the target/site too.\n3. The `Dockerfile` and `docker-compose.yml` located in `docs/` directory\n4. you may alreay set your domain-name dns pointing to your remote server IP Address\n\nCopy these files to your remote server. The directory structure should be:\n\n```text\nsiamstr\nsite/\nDockerfile\ndocker-compose.yml\nusers.json (optional)\ndatabase.db (auto-generated)\n```\n\nyou should have `certbot` `docker` `nginx` installed on your remote server if not:\n\nUbuntu\n\n```sh\nsudo apt install certbot nginx docker docker-compose\n```\n\nDebian should follow the installtion process on docker [website](https://docs.docker.com/engine/install/debian/)\n\n```sh\nsudo apt install certbot nginx\n```\n\nsetting up certbot and nginx config:\n\n```sh\nsudo certbot certonly --nginx -d example.com\n# sudo certbot certonly --nginx -d www.siamstr.com (optional)\n```\n\nCopy `text` inside `nginx.config` and paste into `/etc/nginx/site-enabled/default` and restart nginx service\n\n```sh\nsudo systemctl restart nginx.service\n```\n\nThen start docker compose:\n\n```sh\ndocker compose up\n```\n\n# แค่เนี้ย ง่าย ๆ เสร็จแล้ว\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvazw%2Fsiamstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvazw%2Fsiamstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvazw%2Fsiamstr/lists"}