{"id":20393138,"url":"https://github.com/ujjwal-kr/node-user-api","last_synced_at":"2026-04-11T12:35:11.887Z","repository":{"id":41174876,"uuid":"507884020","full_name":"ujjwal-kr/node-user-api","owner":"ujjwal-kr","description":"A basic user management api","archived":false,"fork":false,"pushed_at":"2022-06-29T14:47:05.000Z","size":458,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T10:27:52.404Z","etag":null,"topics":["express","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://node-api-xyz.herokuapp.com","language":"JavaScript","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/ujjwal-kr.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}},"created_at":"2022-06-27T11:38:48.000Z","updated_at":"2022-06-29T15:46:51.000Z","dependencies_parsed_at":"2022-08-10T01:43:00.285Z","dependency_job_id":null,"html_url":"https://github.com/ujjwal-kr/node-user-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnode-user-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnode-user-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnode-user-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ujjwal-kr%2Fnode-user-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ujjwal-kr","download_url":"https://codeload.github.com/ujjwal-kr/node-user-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241942598,"owners_count":20046380,"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":["express","mongodb","nodejs"],"created_at":"2024-11-15T03:47:39.564Z","updated_at":"2026-04-11T12:35:06.868Z","avatar_url":"https://github.com/ujjwal-kr.png","language":"JavaScript","readme":"# Node User API\nA simple user management API written using javascript. The client is written in react and is deployed to https://node-user-api.vercel.app\n\n## Structure\n- Stack: Backend: Nodejs and expressjs, Front End: Reactjs with vite\n- Testing: jest and supertest\n- Database: MongoDB (Atlas)\n- Other tools:\n\t- `nodemon` for dev server\n\t- `morgan` for logging\n\t- `helmet` to set security headers\n\t- `dotenv` to manage environment variables\n\t- `cors` to set cross site headers\n\t- `prettier` to format code\n\nThe client resides in the `/client` folder\n\nThe API is deployed using heroku on https://node-api-xyz.herokuapp.com\n\n## Demo Video\n[![Demo Video](https://img.youtube.com/vi/jSceqqxiCVU/0.jpg)](https://www.youtube.com/watch?v=jSceqqxiCVU)\n\n\n## How to setup\n- Make sure to have nodejs and git installed\n- Clone the repo using `git clone https://github.com/ujjwal-kr/node-user-api`\n- `cd` into the project folder and run `npm i` to install the dependencies\n- Rename the `.env.example file to .env` and input your mongodb URI\n- Run `npm run dev` to start the development server\n- Run `npm run test` to run all the tests\n\n## Endpoints\n```\nGET \t/users \t\t[Gets all the users]\nGET \t/users/id \t[Gets a single user with the specified id]\nPOST \t/users \t\t[Adds a new user] { name: string, email: string, password: string }\nPATCH \t/users \t\t[Updates existing user with the specified id] { name: string, email: string, password: string } // data can be partial\nDELETE \t/users/id    \t[Deletes user with the specified id]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fujjwal-kr%2Fnode-user-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fujjwal-kr%2Fnode-user-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fujjwal-kr%2Fnode-user-api/lists"}