{"id":22045759,"url":"https://github.com/swag666baby/rpg-crud","last_synced_at":"2025-05-08T07:49:55.939Z","repository":{"id":181325526,"uuid":"666464717","full_name":"Swag666baby/rpg-crud","owner":"Swag666baby","description":"a rpg crud","archived":false,"fork":false,"pushed_at":"2023-12-07T17:41:31.000Z","size":19,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T07:49:50.765Z","etag":null,"topics":["api","bot","crud","crud-api","level","mongodb","mongoose","open-source","ranking","rpg","typescript"],"latest_commit_sha":null,"homepage":"https://rpg-crud-v2b5.onrender.com/","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/Swag666baby.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}},"created_at":"2023-07-14T15:29:09.000Z","updated_at":"2024-07-01T23:21:50.000Z","dependencies_parsed_at":"2023-12-05T22:46:53.306Z","dependency_job_id":null,"html_url":"https://github.com/Swag666baby/rpg-crud","commit_stats":null,"previous_names":["swag666baby/rpg-crud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Frpg-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Frpg-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Frpg-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swag666baby%2Frpg-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swag666baby","download_url":"https://codeload.github.com/Swag666baby/rpg-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253025335,"owners_count":21842409,"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":["api","bot","crud","crud-api","level","mongodb","mongoose","open-source","ranking","rpg","typescript"],"created_at":"2024-11-30T13:14:57.053Z","updated_at":"2025-05-08T07:49:55.919Z","avatar_url":"https://github.com/Swag666baby.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://raw.githubusercontent.com/MicaelliMedeiros/micaellimedeiros/master/image/computer-illustration.png\"/\u003e\n\n\u003cimg src=\"https://img.shields.io/badge/TypeScript-black?style=for-the-badge\u0026logo=typescript\u0026logoColor=white\"/\u003e\n\u003c/p\u003e\n\n# necessary \n\n## typescript \n```\nnpm install -g typescript\n```\n\n## running \n```bash\ngit clone https://github.com/Swag666baby/rpg-crud\ncd rpg-crud \nyarn\nnpm run build\nnpm start\n```\n\n## examples \n**• to create a new user 🖊️**\n```typescript \nimport axios from \"axios\";\n\nconst newUser = async() =\u003e {\n    const post = await axios.post(\"http://localhost:3000/register\", \n    {\n        \"id\": \"\u003crandomId\u003e\",\n        \"name\": \"\u003cuserName\u003e\",\n        \"class\": \"\u003cyouClass\"\u003e,\n        \"primary_weapon\": \"\u003cyouPrimaryWeapon\u003e\",\n        \"secondary_weapon\": \"\u003cyouSecondaryWeapon\u003e\"\n    })\n    console.log(post.data)\n}\n```\n\n**• to modify the coins, rank, name and everything else ✏**\n```typescript \nimport axios from \"axios\";\n\nconst newNameUser = async() =\u003e {\n    const post = await axios.post(\"http://localhost:3000/modify\", {\"id\": \"\u003cyouId\u003e\", \"name\": \"\u003cnewNameUser\u003e\"})\n    console.log(post.data)\n}\n```\n\n**• to delete a user 🗑**\n```typescript \nimport axios from \"axios\";\n\nconst deleteUser = async() =\u003e {\n    const post = await axios.post(\"http://localhost:3000/delete\", {\"id\": \"\u003cyouId\u003e\"})\n    console.log(post.data)\n}\n```\n\n**• to search a user 🔎**\n```typescript \nimport axios from \"axios\";\n\nconst searchUser = async() =\u003e {\n    const request = await axios.get(\"http://localhost:3000/search?id=youId\")\n    console.log(request.data)\n}\n```\n\n**• to have a view of all registered users 📃**\n```typescript\nimport axios from \"axios\";\n\nconst allUsers = async() =\u003e {\n    const request = await axios.get(\"http://localhost:3000/\")\n    console.log(request.data)\n}\n```\nSome items are changed automatically, so I chose not to allow modification via the `modify` route. items like `xp`, `level` and `patent`. \nbut if you still want to change them via route, go to `src/routes/modifyUsers.ts` and add them to `newData`. \n\nhttps://rpg-crud-v2b5.onrender.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswag666baby%2Frpg-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswag666baby%2Frpg-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswag666baby%2Frpg-crud/lists"}