{"id":24998327,"url":"https://github.com/zhouboyi1998/note-rocket","last_synced_at":"2026-04-27T12:02:12.256Z","repository":{"id":47368993,"uuid":"516058507","full_name":"zhouboyi1998/note-rocket","owner":"zhouboyi1998","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-14T17:46:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T17:17:02.343Z","etag":null,"topics":["diesel","rocket"],"latest_commit_sha":null,"homepage":"","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/zhouboyi1998.png","metadata":{"files":{"readme":"README.en.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":"2022-07-20T16:35:27.000Z","updated_at":"2025-02-14T17:46:21.000Z","dependencies_parsed_at":"2024-05-04T20:29:52.289Z","dependency_job_id":"052229ff-0bc5-433a-80cf-8f2495e8ad94","html_url":"https://github.com/zhouboyi1998/note-rocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhouboyi1998/note-rocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhouboyi1998%2Fnote-rocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhouboyi1998%2Fnote-rocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhouboyi1998%2Fnote-rocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhouboyi1998%2Fnote-rocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhouboyi1998","download_url":"https://codeload.github.com/zhouboyi1998/note-rocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhouboyi1998%2Fnote-rocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"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":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["diesel","rocket"],"created_at":"2025-02-04T17:56:58.324Z","updated_at":"2026-04-27T12:02:12.221Z","avatar_url":"https://github.com/zhouboyi1998.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e📔 note-rocket\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca target=\"_blank\" href=\"https://github.com/zhouboyi1998/note-rocket\"\u003e \n\u003cimg src=\"https://img.shields.io/github/stars/zhouboyi1998/note-rocket?logo=github\"\u003e\n\u003c/a\u003e\n\u003ca target=\"_blank\" href=\"https://opensource.org/licenses/MIT\"\u003e \n\u003cimg src=\"https://img.shields.io/badge/license-MIT-red\"\u003e \n\u003c/a\u003e \n\u003cimg src=\"https://img.shields.io/badge/Rust-1.61.0-orange\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Rocket-0.5.0 rc.2-red\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Diesel-1.4.8-red\"\u003e\n\u003c/p\u003e\n\n### 📖 Language\n\n[简体中文](./README.md) | English\n\n### ⌛ Start\n\n#### Install diesel_cli\n\n* Install `diesel_cli` (Only install `diesel_cli` for `SQLite` database)\n\n```bash\ncargo install diesel_cli --no-default-features --features sqlite-bundled\n```\n\n#### Windows compile sqlite3.lib\n* Find a directory similar to the following path in the `Visual Studio` installation directory\n\n```\nD:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\n```\n\n* Copy `x64` folder to any directory\n* Copy the `sqlite3.def` file from the `SQLite` installation directory to the new `x64` folder\n* Run the command in the 'x64' directory\n    * Compile `sqlite3.lib`\n\n```bash\nlib /DEF:sqlite3.def /MACHINE:X64\n```\n\n* Copy the generated `sqlite3.lib` and `sqlite3.exp` files to the `SQLite` installation directory\n* In the `SQLite` installation directory, run the command using `PowerShell`\n    * Copy the `sqlite3.dll` and `sqlite3.lib` files to the `.rustup` directory\n    * Copy to `stable` or `nightly`, depending on the version of the `Rust` toolchain in use\n\n```bash\n# use rust toolchain stable version\ncp sqlite3.lib c:\\Users\\11441\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\sqlite3.lib\ncp sqlite3.dll c:\\Users\\11441\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin\\sqlite3.dll\n\n# use rust toolchain nightly version\ncp sqlite3.lib c:\\Users\\11441\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\sqlite3.lib\ncp sqlite3.dll c:\\Users\\11441\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\bin\\sqlite3.dll\n```\n\n#### Generate SQLite database file\n\n* Run the command in the project root directory\n* Use `diesel` to create the project's corresponding `SQLite` database file\n\n```bash\ndiesel setup --database-url=database.sqlite\n```\n\n* Create the folder for `diesel SQL`\n\n```bash\ndiesel migration generate create_card\n```\n\n* Write the create table operation in `up.sql`\n\n```sql\nCREATE TABLE note_card (\n    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n    title VARCHAR NOT NULL,\n    content VARCHAR NOT NULL,\n    tip VARCHAR NOT NULL,\n    extra VARCHAR NOT NULL,\n    create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP\n)\n```\n\n* Write the drop table operation in `down.sql`\n\n```sql\nDROP TABLE note_card\n```\n\n* Create `schema.rs` file\n\n```bash\ndiesel migration run --database-url=database.sqlite\n```\n\n#### Run\n\n```bash\ncargo run\n```\n\n#### Debug build\n\n```bash\ncargo build\n```\n\n#### Release build\n\n```bash\ncargo build --release\n```\n\n### 📜 Licence\n\n[MIT License](https://opensource.org/licenses/MIT) Copyright (c) 2022 周博义\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhouboyi1998%2Fnote-rocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhouboyi1998%2Fnote-rocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhouboyi1998%2Fnote-rocket/lists"}