{"id":27081498,"url":"https://github.com/kavicastelo/rocket-rust-web-server","last_synced_at":"2026-04-26T23:31:30.368Z","repository":{"id":255721511,"uuid":"840368655","full_name":"kavicastelo/rocket-rust-web-server","owner":"kavicastelo","description":"This project is a web server built with Rocket, using Diesel for database management and PostgreSQL as the database.","archived":false,"fork":false,"pushed_at":"2025-04-05T22:21:04.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-07T14:49:59.714Z","etag":null,"topics":["diesel","rocket","rust","template","webserver"],"latest_commit_sha":null,"homepage":"https://kavicastelo.github.io/rocket-rust-web-server/","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/kavicastelo.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":"2024-08-09T14:46:36.000Z","updated_at":"2025-04-06T22:23:19.000Z","dependencies_parsed_at":"2025-04-05T23:31:46.806Z","dependency_job_id":null,"html_url":"https://github.com/kavicastelo/rocket-rust-web-server","commit_stats":null,"previous_names":["kavicastelo/rocket_web_server","kavicastelo/rocket-rust-web-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kavicastelo/rocket-rust-web-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavicastelo%2Frocket-rust-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavicastelo%2Frocket-rust-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavicastelo%2Frocket-rust-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavicastelo%2Frocket-rust-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kavicastelo","download_url":"https://codeload.github.com/kavicastelo/rocket-rust-web-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kavicastelo%2Frocket-rust-web-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32317163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"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":["diesel","rocket","rust","template","webserver"],"created_at":"2025-04-06T02:19:23.168Z","updated_at":"2026-04-26T23:31:30.352Z","avatar_url":"https://github.com/kavicastelo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket Rust Web Server with Diesel \u0026 PostgreSQL\n\nThis project is a web server built with [Rocket](https://rocket.rs), using [Diesel](https://diesel.rs) for database\nmanagement and PostgreSQL as the database.\n\n## Features\n\n- REST API built with Rocket\n- PostgreSQL integration via Diesel ORM\n- CRUD operations for database entities\n\n## Requirements\n\n- Rust \u0026 Cargo (latest stable version)\n- PostgreSQL installed and running\n- Diesel CLI\n- Windows (with workaround for Diesel issue) or Linux/MacOS\n\n## Setup\n\n1. Install Rust:\n\n   Follow the instructions at [Rust's official site](https://www.rust-lang.org/tools/install).\n2. Install PostgreSQL:\n\n   Download and install PostgreSQL from [PostgreSQL's official site](https://www.postgresql.org/download/).\n3. Install Diesel CLI:\n\n   Install the Diesel CLI with the following command:\n   ```shell\n   cargo install diesel_cli --no-default-features --features postgres\n   ```\n4. Set Up PostgreSQL Database:\n    - Ensure PostgreSQL is running.\n    - Create a database.\n   ```shell\n   createdb rocket_server\n   ```\n    - Update your rocket.toml file with the database URL:\n   ```toml\n   [global.databases]\n   postgres_db = { url = \"postgres://postgres:yourpassword@localhost/rocket_server\" }\n   ```\n5. Setup Environment (Windows only workaround):\n   If running on\n   Windows, [follow this solution](https://github.com/diesel-rs/diesel/discussions/2947#discussioncomment-2025857.\n6. Run Migrations:\n   Create the Diesel migrations:\n   ```shell\n   diesel migration run\n   ```\n7. Run the Server:\n   Run the Rocket server with:\n   ```shell\n   $env:ROCKET_LOG=\"debug\"; cargo run # for Windows\n   ROCKET_LOG=debug cargo run         # for Linux/MacOS\n   ```\n8. Access the server:\n   The server will be available at `http://localhost:8000`.\n\n## Troubleshooting\n\n- If you're facing issues on Windows with Diesel, it’s a known problem. You may try running the project inside WSL or a\n  Linux VM for better compatibility.\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavicastelo%2Frocket-rust-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkavicastelo%2Frocket-rust-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkavicastelo%2Frocket-rust-web-server/lists"}