{"id":13597378,"url":"https://github.com/itehax/rust-blog","last_synced_at":"2025-04-10T00:32:09.532Z","repository":{"id":183454325,"uuid":"670172243","full_name":"itehax/rust-blog","owner":"itehax","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-25T17:29:00.000Z","size":42441,"stargazers_count":43,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-25T18:30:33.828Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itehax.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-07-24T12:59:27.000Z","updated_at":"2024-11-25T17:29:36.000Z","dependencies_parsed_at":"2024-11-06T21:45:59.918Z","dependency_job_id":null,"html_url":"https://github.com/itehax/rust-blog","commit_stats":null,"previous_names":["itehax/itehax_website"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itehax%2Frust-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itehax%2Frust-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itehax%2Frust-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itehax%2Frust-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itehax","download_url":"https://codeload.github.com/itehax/rust-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248135509,"owners_count":21053696,"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":[],"created_at":"2024-08-01T17:00:31.670Z","updated_at":"2025-04-10T00:32:07.243Z","avatar_url":"https://github.com/itehax.png","language":"Rust","funding_links":[],"categories":["Blogs / Websites"],"sub_categories":["Unofficial"],"readme":"# My personal blog written using rust!\n\nThis is my personal website i built using [leptos](https://leptos.dev) and [preline](https://preline.co)\n---\n\n[Preview](https://itehax.com)\n\n## How to run\n\nTo run the project first of all you need to have `cargo-leptos` installed on your machine\n\n`cargo install --locked cargo-leptos`\n\nThen run\n\n`npm run watch` (This is a script which basically run the CLI tool to scan your template files for classes and build your CSS.)\n\nand\n\n`cargo leptos watch`\n\nin this directory.\n\nOpen browser on [http://localhost:3000/](http://localhost:3000/)\n\nYou can begin editing your app at `src/app.rs`.\n\n## Installing Tailwind\n\nYou can install Tailwind using `npm`:\n\n```bash\nnpm install -D tailwindcss\n```\nAlso [Tailwind Typography](https://tailwindcss.com/docs/typography-plugin#installation) and [Preline](https://www.preline.co/docs/index.html)\n\n\n## Setting up with VS Code and Additional Tools\n\nIf you're using VS Code, add the following to your `settings.json`\n\n```json\n  \"emmet.includeLanguages\": {\n    \"rust\": \"html\",\n    \"*.rs\": \"html\"\n  },\n  \"tailwindCSS.includeLanguages\": {\n      \"rust\": \"html\",\n      \"*.rs\": \"html\"\n  },\n  \"files.associations\": {\n      \"*.rs\": \"rust\"\n  },\n  \"editor.quickSuggestions\": {\n    \"other\": \"on\",\n    \"comments\": \"on\",\n    \"strings\": true\n  },\n  \"css.validate\": false,\n```\n\nInstall [Tailwind CSS Intellisense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss).\n\n    Install \"VS Browser\" extension, a browser at the right window.\n    Allow vscode Ports forward: 3000, 3001.\n\n## Notes about Tooling\n\nBy default, `cargo-leptos` uses `nightly` Rust, `cargo-generate`, and `sass`. If you run into any trouble, you may need to install one or more of these tools.\n\n1. `rustup toolchain install nightly --allow-downgrade` - make sure you have Rust nightly\n2. `rustup default nightly` - setup nightly as default, or you can use rust-toolchain file later on\n3. `rustup target add wasm32-unknown-unknown` - add the ability to compile Rust to WebAssembly\n4. `cargo install cargo-generate` - install `cargo-generate` binary (should be installed automatically in future)\n5. `npm install -g sass` - install `dart-sass` (should be optional in future)\n\n## Compiling for Release\n```bash\ncargo leptos build --release\n```\n\nWill generate your server binary in target/release and your site package in target/site.\n\n\n# Using the docker image\n\n```bash\ndocker build ./ -t itehax-website\n```\n\nAfter it's builded.\n\n```bash\ndocker run -p 3000:3000 itehax-website\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitehax%2Frust-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitehax%2Frust-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitehax%2Frust-blog/lists"}