{"id":18374106,"url":"https://github.com/rubel011/mysql-nodejs-backend","last_synced_at":"2025-04-11T01:54:07.698Z","repository":{"id":197467035,"uuid":"698251148","full_name":"Rubel011/mysql-nodejs-backend","owner":"Rubel011","description":"This is Mysql Node.js backend project, where you can register, log in, and access restricted resources. AWS-deployed-Link:- ","archived":false,"fork":false,"pushed_at":"2024-02-26T11:23:43.000Z","size":133,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:54:02.662Z","etag":null,"topics":["api","aws-ec2","bcrypt","expressjs","jsonwebtoken","jwt","jwt-authentication","mysql","nodejs","nodemailer","planetscale","sequelize","sequelize-cli"],"latest_commit_sha":null,"homepage":"https://quadb-nodejs-qxb9.onrender.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/Rubel011.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-09-29T13:50:36.000Z","updated_at":"2025-03-25T22:14:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"20fafe45-8d56-4e82-acd8-cbd876b57f8d","html_url":"https://github.com/Rubel011/mysql-nodejs-backend","commit_stats":null,"previous_names":["rubel011/quadb-nodejs-backend","rubel011/mysql-nodejs-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2Fmysql-nodejs-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2Fmysql-nodejs-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2Fmysql-nodejs-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubel011%2Fmysql-nodejs-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rubel011","download_url":"https://codeload.github.com/Rubel011/mysql-nodejs-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328109,"owners_count":21085258,"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","aws-ec2","bcrypt","expressjs","jsonwebtoken","jwt","jwt-authentication","mysql","nodejs","nodemailer","planetscale","sequelize","sequelize-cli"],"created_at":"2024-11-06T00:13:23.406Z","updated_at":"2025-04-11T01:54:07.679Z","avatar_url":"https://github.com/Rubel011.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuadB Tech Node.js Backend Project\n\nThis is the QuadB Tech Node.js backend project, where you can register, log in, and access restricted resources.\n\n## API Documentation: for Swagger\n\nYou can explore the API documentation using Swagger UI. Access the documentation by navigating to:\n\n   https://quadb-nodejs-qxb9.onrender.com/api-docs\n\n## Functionality\n\nThe API includes the following functionality:\n- User Registration\n- User Login and Authentication\n- User details by user_id\n- User Management- create , update, delete\n- Get user information like user's image\n\n## Backend Deployment\n\nThe backend of this project is deployed on AWS and can be accessed via the following link: \n\n[Backend Deployment Link](https://quadb-nodejs-qxb9.onrender.com/)\n\n\n## Backend-Routes\n- **User Authentication**:\n  - `POST /users/register`: Register a new user.\n  - `POST /users/login`: Log in with a registered user.\n  - `GET /users/details/{user_id}`: Get the user's details by user_id .\n  - `PUT /users/update`: update the user (protected route using JWT).\n  - `POST /users/image/{user_id}`: get user's image.\n  - `POST /users/insert`: insert new user (protected route using JWT).\n  - `DELETE /users/delete/{user_id}`: delete the user using user_id.\n\n### Technologies Used\n\n- Node.js \n- Express.js\n- MySQL\n- Sequelize\n- Sequelize-cli\n- Bcrypt\n- JWT\n- Swagger (for API documentation)\n\n### Installation\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/Rubel011/quadb-nodejs-backend.git\n\n2. Navigate to the project directory:\n    ```bash\n    cd quadb-nodejs-backend\n3. Install the project dependencies:\n    ```bash\n    npm install \n\n4. Create a .env file in the project root and configure the following environment variables:\n    ```markdown\n    PORT=your-database-port\n    DB_USER=your-database-username\n    DB_PASS=your-database-password\n    DB_Name=your-database-name\n    DB_HOST=your-database-host\n    NODE_ENV=production\n    ACCESS_TOKEN_SECRET=masai-school-web\n    REFRESH_TOKEN_SECRET=masai-school\n    ACCESS_TOKEN_EXPIRATION=1d\n    REFRESH_TOKEN_EXPIRATION=24d\n    EMAIL_ID=nodemailer-email-id\n    GOOGLEKEY=nodemailer-google-key\n    FRONTEND_DEPLOYED_URL=#\n    BACKEND_DEPLOYED_URL=http://localhost:8080/\n\n4. Start the server:\n    ```\n    npm run server\n    ```\n\n5. Access the backend API at http://localhost:PORT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubel011%2Fmysql-nodejs-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubel011%2Fmysql-nodejs-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubel011%2Fmysql-nodejs-backend/lists"}