{"id":29874443,"url":"https://github.com/huytd/jsondb-rs","last_synced_at":"2025-08-27T02:19:43.884Z","repository":{"id":148460249,"uuid":"226289981","full_name":"huytd/jsondb-rs","owner":"huytd","description":"A RESTful JSON storage service","archived":false,"fork":false,"pushed_at":"2020-04-22T17:52:16.000Z","size":30,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T00:54:51.121Z","etag":null,"topics":["heroku","json","json-api","rust-lang"],"latest_commit_sha":null,"homepage":"https://snarky-json.herokuapp.com/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huytd.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":"2019-12-06T09:15:27.000Z","updated_at":"2024-11-26T14:02:35.000Z","dependencies_parsed_at":"2023-05-20T06:15:10.279Z","dependency_job_id":null,"html_url":"https://github.com/huytd/jsondb-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huytd/jsondb-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fjsondb-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fjsondb-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fjsondb-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fjsondb-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huytd","download_url":"https://codeload.github.com/huytd/jsondb-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fjsondb-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272280379,"owners_count":24906120,"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-27T02:00:09.397Z","response_time":76,"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":["heroku","json","json-api","rust-lang"],"created_at":"2025-07-31T00:13:32.908Z","updated_at":"2025-08-27T02:19:43.876Z","avatar_url":"https://github.com/huytd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"logo.svg\" width=\"100px;\" height=\"100px\" /\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003ejsondb-rs\u003c/b\u003e\u003c/p\u003e\n\n# Usage\n\nJSONdb is a RESTful JSON storage service that you can\nuse to quickly develop your mobile and web app, without\nthe need of any backend.\n\n```\nPOST  /storage       create a new JSON entry\nGET   /storage/{id}  read a JSON entry\nPUT   /storage/{id}  update a JSON entry\n```\n\n# Deploy to Heroku\n\nTo deploy this application on Heroku, your have two options:\n\n**Option 1: Click to deploy:**\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n**Option 2: Deploy manually:**\n\n```\n$ clone https://github.com/huytd/jsondb-rs\n$ cd jsondb-rs\n$ heroku apps:create\n$ heroku addons:create heroku-postgresql\n$ heroku buildpacks:set https://github.com/emk/heroku-buildpack-rust\n$ git push heroku master\n```\n\n**Note:** If you're using the 1-core Heroku free dyno, please expect\nthe build process to be 10-20 minutes at worst.\n\n# Run on your own server\n\nTo run on your own server, assuming you already have these installed:\n\n- [Rust](https://rustup.rs/) (stable edition)\n- [PostgreSQL](https://www.postgresql.org/)\n- [Diesel CLI](https://github.com/diesel-rs/diesel/tree/master/diesel_cli)\n\nYou can install `diesel-cli` using the following command:\n\n```\n$ cargo install diesel_cli --no-default-features --features postgres\n```\n\nFirst, clone the repo:\n\n```\n$ clone https://github.com/huytd/jsondb-rs\n$ cd jsondb-rs\n```\n\nCreate the `.env` file to config your `DATABASE_URL`, in the project's root:\n\n```\n$ echo DATABASE_URL=postgres://\u003cusername\u003e:\u003cpassword\u003e@127.0.0.1/jsondb \u003e .env\n```\n\nInitialize the database:\n\n```\n$ diesel setup\n```\n\nRun the migration to create the data tables:\n\n```\n$ diesel migration run\n```\n\nRun the app server:\n\n```\n$ cargo run --release\n```\n\nIf everything is running, you can start [setup a systemd service](https://www.steadylearner.com/blog/read/How-to-deploy-Rust-Web-App#5-create-systemd-service-to-serve-your-web-application) to serve your app\nand put it behind nginx, or so.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuytd%2Fjsondb-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuytd%2Fjsondb-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuytd%2Fjsondb-rs/lists"}