{"id":19094157,"url":"https://github.com/daveinchy/mongodb-proxy","last_synced_at":"2026-06-12T21:04:52.510Z","repository":{"id":160361545,"uuid":"537377517","full_name":"DaveInchy/mongodb-proxy","owner":"DaveInchy","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-13T12:00:40.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T23:41:57.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"mongodb-rest.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DaveInchy.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-16T08:49:03.000Z","updated_at":"2023-05-02T10:41:59.000Z","dependencies_parsed_at":"2024-02-13T14:22:18.303Z","dependency_job_id":"e14f1c30-d780-4a84-b70b-94cfb86a895b","html_url":"https://github.com/DaveInchy/mongodb-proxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveInchy%2Fmongodb-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveInchy%2Fmongodb-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveInchy%2Fmongodb-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaveInchy%2Fmongodb-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaveInchy","download_url":"https://codeload.github.com/DaveInchy/mongodb-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240143899,"owners_count":19754801,"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-11-09T03:27:41.016Z","updated_at":"2026-06-12T21:04:52.500Z","avatar_url":"https://github.com/DaveInchy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Atlas (CRUD) Proxy\r\n\r\nthis project is based on the edge network that mongodb offers with a free tier to host your document based database.\r\n\r\n## Installing\r\n\r\n1. Make an `.env` file in the project root.\r\n2. Copy this configuration and paste it in the `.env` file.\r\n\r\n    ```env\r\n    AUTH_KEY=your_static_secret_key\r\n    ```\r\n\r\n3. Run `$ npm i --include=dev \u0026\u0026 npm run dev;` to install the dependencies and starts the dev server with hot reloading.\r\n\r\n\u003cbr\u003e\r\n\r\n# Build Redistributables\r\n```bash\r\nnpm run build\r\n```\r\n\r\n# Using the api\r\n\r\n## 1. Key-Value Pair Tables\r\n### CREATE\r\n```bash\r\ncurl -X POST http://localhost:8080/api/kv/table/mytable \\\r\n-H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\"\r\n```\r\n\r\n### DELETE\r\n```bash\r\ncurl -X DELETE http://localhost:8080/api/kv/table/mytable \\\r\n-H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\"\r\n```\r\n\u003chr\u003e\u003c/hr\u003e\r\n\r\n## 2. Key-Value Pairs\r\n### LIST \r\n```bash\r\ncurl -X GET http://localhost:8080/api/kv/mytable \\\r\n-H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\"\r\n```\r\n\r\n### CREATE\r\n```bash\r\ncurl -X POST http://localhost:8080/api/kv/mytable/mykey \\\r\n-H \"Content-Type: application/json\" -H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\" -d '{\"value\":\"some value\"}'\r\n```\r\n\r\n### READ\r\n```bash\r\ncurl -X GET http://localhost:8080/api/kv/mytable/mykey \\\r\n-H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\"\r\n```\r\n\r\n### UPDATE\r\n```bash\r\ncurl -X PUT http://localhost:8080/api/kv/mytable/mykey \\\r\n-H \"Content-Type: application/json\" \\\r\n-H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\" -d '{\"value\":\"new value\"}'\r\n```\r\n\r\n### DELETE\r\n```bash\r\ncurl -X DELETE http://localhost:8080/api/kv/mytable/mykey \\\r\n-H \"Bearer: \u003cYOUR_AUTH_KEY\u003e\"\r\n```\r\n\r\nSigned by Dave.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaveinchy%2Fmongodb-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaveinchy%2Fmongodb-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaveinchy%2Fmongodb-proxy/lists"}