{"id":15190595,"url":"https://github.com/ajayprasadverma/registration","last_synced_at":"2026-03-02T22:07:05.464Z","repository":{"id":175385587,"uuid":"653807489","full_name":"AjayPrasadVerma/registration","owner":"AjayPrasadVerma","description":"User Registration","archived":false,"fork":false,"pushed_at":"2023-06-29T05:09:56.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T02:17:49.293Z","etag":null,"topics":["bcrypt-encryption","bcryptjs","ejs","ejs-template-engine","ejs-templates","javascript","jwt","jwt-auth","jwt-authentication","jwt-authorization","jwt-middleware","jwt-token","mongodb-atlas","mongoose","mongoose-model","mongoose-schema","node-js","node-module","nodejs"],"latest_commit_sha":null,"homepage":"https://registration-u64p.onrender.com","language":"EJS","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/AjayPrasadVerma.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,"publiccode":null,"codemeta":null}},"created_at":"2023-06-14T19:27:21.000Z","updated_at":"2023-06-15T10:09:23.000Z","dependencies_parsed_at":"2023-07-11T01:16:37.715Z","dependency_job_id":null,"html_url":"https://github.com/AjayPrasadVerma/registration","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"b57f14e79880607db8622713dd9242e571465571"},"previous_names":["ajayprasadverma/regiatration","ajayprasadverma/registration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AjayPrasadVerma%2Fregistration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AjayPrasadVerma%2Fregistration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AjayPrasadVerma%2Fregistration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AjayPrasadVerma%2Fregistration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AjayPrasadVerma","download_url":"https://codeload.github.com/AjayPrasadVerma/registration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241110754,"owners_count":19911391,"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":["bcrypt-encryption","bcryptjs","ejs","ejs-template-engine","ejs-templates","javascript","jwt","jwt-auth","jwt-authentication","jwt-authorization","jwt-middleware","jwt-token","mongodb-atlas","mongoose","mongoose-model","mongoose-schema","node-js","node-module","nodejs"],"created_at":"2024-09-27T20:42:57.272Z","updated_at":"2026-03-02T22:07:05.413Z","avatar_url":"https://github.com/AjayPrasadVerma.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web App with Node.js, MongoDB, and JWT Authentication\n\nThis is a web application built using Node.js, MongoDB, and JWT authentication. It provides a RESTful API for performing CRUD (Create, Read, Delete) operations on user details.\n\n## Features\n\n- User authentication using JWT (JSON Web Tokens)\n- User registration and login\n- Create, read, and delete user details\n- Secure API endpoints with authentication middleware\n\n## Technologies Used\n\n- Node.js: A JavaScript runtime environment for server-side development.\n- Express.js: A web application framework for Node.js.\n- MongoDB: A NoSQL database for storing user details.\n- Mongoose: An object modeling library for MongoDB and Node.js.\n- JSON Web Tokens (JWT): A standard for secure authentication and authorization.\n- Bcrypt: A library for password hashing and salting.\n\n## Installation\n\n1. Clone this repository to your local machine.\n\n   ```shell\n   git clone https://github.com/AjayPrasadVerma/registration.git\n   ```\n\n2. Navigate to the project directory.\n\n   ```shell\n   cd your-repo\n   ```\n\n3. Install the dependencies using npm (Node Package Manager).\n\n   ```shell\n   npm install\n   ```\n\n4. Configure the environment variables.\n\n   - Create a `.env` file in the root directory.\n   - Provide the necessary environment variables:\n\n     ```plaintext\n     PORT=1000\n     MONGODB_URI=\u003cyour-mongodb-uri\u003e\n     JWT_SECRET=\u003cyour-jwt-secret\u003e\n     ```\n\n5. Start the application.\n\n   ```shell\n   npm start\n   ```\n\n6. The application should now be running on `http://localhost:1000`.\n\n## API Documentation\n\n### Authentication\n\n#### Register a User\n\n- **Endpoint:** `POST /signup`\n- **Request Body:**\n\n  ```json\n  {\n    \"username\": \"example@gmail.com\",\n    \"password\": \"secretpassword\"\n  }\n  ```\n\n- **Response:**\n\n  ```json\n  {\n    \"message\": \"Successfully Signup please login!.\"\n  }\n  ```\n\n#### Login\n\n- **Endpoint:** `POST /login`\n- **Request Body:**\n\n  ```json\n  {\n    \"username\": \"example@gmail.com\",\n    \"password\": \"secretpassword\"\n  }\n  ```\n\n- **Response:**\n\n  ```json\n  {\n    \"token\": \"\u003cjwt-token\u003e\"\n  }\n  ```\n\n### User Details\n\n#### Get User Details\n\n- **Endpoint:** `GET /user`\n- **Response:**\n\n  ```json\n    {\n      \"id\": \"1\",\n      \"name\": \"John Doe\",\n      \"email\": \"john.doe@example.com\",\n      \"Date of Birth\" : --/--/----,\n      \"Age\": \"--\",\n      \"Gender\": \"----\",\n      \"Country\": \"----\",\n      \"State\": \"-----\",\n      \"City\" : \"-------\"\n    }\n\n  ```\n\n#### Create a User Detail\n\n- **Endpoint:** `POST /user`\n- **Request Body:**\n\n  ```json\n  {\n      \"id\": \"1\",\n      \"name\": \"John Doe\",\n      \"email\": \"john.doe@example.com\",\n      \"Date of Birth\" : --/--/----,\n      \"Age\": \"--\",\n      \"Gender\": \"----\",\n      \"Country\": \"----\",\n      \"State\": \"-----\",\n      \"City\" : \"-------\"\n  }\n  ```\n\n- **Response:**\n\n  ```json\n  {\n      \"id\": \"1\",\n      \"name\": \"John Doe\",\n      \"email\": \"john.doe@example.com\",\n      \"Date of Birth\" : --/--/----,\n      \"Age\": \"--\",\n      \"Gender\": \"----\",\n      \"Country\": \"----\",\n      \"State\": \"-----\",\n      \"City\" : \"-------\"\n  }\n  ```\n\n#### Delete a User Detail\n\n- **Endpoint:** `DELETE /api/user/delete`\n- **Response:**\n\n  ```json\n  {\n    \"message\": \"User deleted successfully.\"\n  }\n  ```\n\n## Contribution\n\nContributions are welcome! If you find any issues or want to enhance the project, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\nFeel free to customize the content according to your project's specific requirements. The `README.md` file serves as a detailed guide for developers to understand your web app, its features, how to install it, and how to use its API endpoints.\n\nMake sure to update the installation steps, API endpoints, and any other relevant information specific to your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajayprasadverma%2Fregistration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajayprasadverma%2Fregistration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajayprasadverma%2Fregistration/lists"}