{"id":15068190,"url":"https://github.com/rishavconsolelog21/dealsdray","last_synced_at":"2026-01-02T22:51:10.082Z","repository":{"id":257656164,"uuid":"857326038","full_name":"rishavConsoleLog21/DealsDray","owner":"rishavConsoleLog21","description":"This repo is for DealsDray Task, whose Tech Stack in the MERN Stack. Which have User Register, Login and Logout and Employee management system","archived":false,"fork":false,"pushed_at":"2024-09-27T15:44:20.000Z","size":189,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T06:12:29.813Z","etag":null,"topics":["bcryptjs","cors","express-js","javascript","jwt-authentication","mongodb","reactjs"],"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-09-14T11:03:06.000Z","updated_at":"2024-09-27T15:44:23.000Z","dependencies_parsed_at":"2024-09-18T05:03:26.858Z","dependency_job_id":null,"html_url":"https://github.com/rishavConsoleLog21/DealsDray","commit_stats":null,"previous_names":["rishavconsolelog21/dealsdray"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2FDealsDray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2FDealsDray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2FDealsDray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavConsoleLog21%2FDealsDray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishavConsoleLog21","download_url":"https://codeload.github.com/rishavConsoleLog21/DealsDray/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830951,"owners_count":20354854,"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":["bcryptjs","cors","express-js","javascript","jwt-authentication","mongodb","reactjs"],"created_at":"2024-09-25T01:32:17.783Z","updated_at":"2026-01-02T22:51:10.049Z","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. Where I build a basic application to manage user and employee for DealsDray.\n\n## Prerequisites\n\nBefore running this application, ensure you have the following installed:\n\n- Node.js and npm(node package manager)\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 dealsdray\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:5173/` to view the application.\n\n## Endpoints\n\n### Users API\n\n#### POST /users/register\n\n- Description: Register a new user\n- Request Body: User registration details (JSON)\n- Response: Newly registered user object\n\n#### POST /users/login\n\n- Description: Login a user\n- Request Body: User login credentials (JSON)\n- Response: Authentication token and user details\n\n#### POST /users/logout\n\n- Description: Logout a user\n- Response: Success message\n\n### Employee API\n\n#### GET /employees\n\n- Description: Get all employees\n- Response: Array of user objects\n\n#### GET /employees/:id\n\n- Description: Get a single user by ID\n- Parameters:\n  - `id`: User ID\n- Response: User object\n\n#### POST /employees\n\n- Description: Create a new user\n- Request Body: User object (JSON)\n- Response: Newly created user object\n\n#### PUT /employees/:id\n\n- Description: Update an existing Employee\n- Parameters:\n  - `id`: Employee ID\n- Request Body: Updated Employee object (JSON)\n- Response: Updated Employee object\n\n#### DELETE /employees/:id\n\n- Description: Delete a Employee by ID\n- Parameters:\n  - `id`: Employee ID\n- Response: Success message\n\n## Frontend\n\nThe frontend is built with React.js and styled with TailwindCSS. 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%2Fdealsdray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishavconsolelog21%2Fdealsdray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishavconsolelog21%2Fdealsdray/lists"}