{"id":20717788,"url":"https://github.com/rishavconsolelog21/crud-operation","last_synced_at":"2025-08-21T16:04:50.180Z","repository":{"id":236537932,"uuid":"792803785","full_name":"rishavConsoleLog21/crud-operation","owner":"rishavConsoleLog21","description":"This repo will help you to know CRUD Operation in MERN Stack","archived":false,"fork":false,"pushed_at":"2024-05-11T16:23:23.000Z","size":341,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T22:21:40.212Z","etag":null,"topics":["crud-operation","mern","mern-stack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rishavConsoleLog21.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}},"created_at":"2024-04-27T16:17:15.000Z","updated_at":"2024-05-11T16:23:26.000Z","dependencies_parsed_at":"2024-05-11T17:43:48.228Z","dependency_job_id":null,"html_url":"https://github.com/rishavConsoleLog21/crud-operation","commit_stats":null,"previous_names":["rishavconsolelog21/crud-operation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2Fcrud-operation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2Fcrud-operation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2Fcrud-operation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2Fcrud-operation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishavConsoleLog21","download_url":"https://codeload.github.com/rishavConsoleLog21/crud-operation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242990494,"owners_count":20217996,"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":["crud-operation","mern","mern-stack"],"created_at":"2024-11-17T03:10:18.001Z","updated_at":"2025-03-11T07:27:02.875Z","avatar_url":"https://github.com/rishavConsoleLog21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MERN Stack CRUD Operations Example\n\nThis is a simple example demonstrating CRUD (Create, Read, Update, Delete) operations using the MERN stack. In this example, we'll build a basic application to manage user data.\n\n## Prerequisites\n\nBefore running this application, ensure you have the following installed:\n\n- Node.js and npm\n- MongoDB\n\n## Installation\n\n1. Clone this repository:\n\n    ```bash\n    git clone \u003crepository_url\u003e\n    ```\n\n2. Navigate to the project directory:\n\n    ```bash\n    cd crud-operation\n    ```\n\n3. Install server dependencies:\n\n    ```bash\n    cd backend\n    npm install\n    ```\n\n4. Install client dependencies:\n\n    ```bash\n    cd ../frontend\n    npm install\n    ```\n\n## Usage\n\n1. Start the server:\n\n    ```bash\n    cd ../backend\n    npm run dev\n    ```\n\n2. Start the client:\n\n    ```bash\n    cd ../frontend\n    npm run dev\n    ```\n\n3. Open your browser and go to `http://localhost:5555` to view the application.\n\n## Endpoints\n\n### Users API\n\n#### GET /employee\n\n- Description: Get all employee\n- Response: Array of user objects\n\n#### GET /employee/:id\n\n- Description: Get a single user by ID\n- Parameters:\n  - `id`: User ID\n- Response: User object\n\n#### POST /employee\n\n- Description: Create a new user\n- Request Body: User object (JSON)\n- Response: Newly created user object\n\n#### PUT /employee/:id\n\n- Description: Update an existing user\n- Parameters:\n  - `id`: User ID\n- Request Body: Updated user object (JSON)\n- Response: Updated user object\n\n#### DELETE /employee/:id\n\n- Description: Delete a user by ID\n- Parameters:\n  - `id`: User ID\n- Response: Success message\n\n## Frontend\n\nThe frontend is built with React.js and styled with CSS. It provides a simple user interface to perform CRUD operations on user data.\n\n## Backend\n\nThe backend is built with Node.js and Express.js. It provides RESTful APIs to interact with the MongoDB database.\n\n## Database\n\nThis application uses MongoDB as its database to store user data. Make sure MongoDB is running locally on your machine.\n\n## Contributing\n\nContributions are welcome! Feel free to submit a pull request or open an issue if you find any bugs or want to suggest improvements.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishavconsolelog21%2Fcrud-operation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishavconsolelog21%2Fcrud-operation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishavconsolelog21%2Fcrud-operation/lists"}