{"id":26581806,"url":"https://github.com/ashishpathak2/kaza-assignment","last_synced_at":"2026-04-05T22:02:07.385Z","repository":{"id":283031482,"uuid":"950456092","full_name":"ashishpathak2/kaza-assignment","owner":"ashishpathak2","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-18T07:39:00.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T08:35:23.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ashishpathak2.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":"2025-03-18T07:31:27.000Z","updated_at":"2025-03-18T07:39:04.000Z","dependencies_parsed_at":"2025-03-18T08:35:25.186Z","dependency_job_id":"0b7190a1-227d-4ada-befe-963f50137093","html_url":"https://github.com/ashishpathak2/kaza-assignment","commit_stats":null,"previous_names":["ashishpathak2/kaza-assignment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpathak2%2Fkaza-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpathak2%2Fkaza-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpathak2%2Fkaza-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashishpathak2%2Fkaza-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashishpathak2","download_url":"https://codeload.github.com/ashishpathak2/kaza-assignment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245071760,"owners_count":20556352,"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":[],"created_at":"2025-03-23T07:31:44.349Z","updated_at":"2025-12-30T23:37:15.024Z","avatar_url":"https://github.com/ashishpathak2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Authentication API\n\n## Overview\nThis is a simple Node.js authentication API using Express, Sequelize, and MySQL. It includes user signup, signin, authentication middleware, profile update, and signout functionality.\n\n## Prerequisites\n- MySQL server must be installed and running locally.\n- Node.js and npm installed.\n\n## Installation\n```sh\n# Clone the repository\ngit clone https://github.com/your-repo.git\ncd your-repo\n\n# Install dependencies\nnpm install\n\n# Create MySQL database\nmysql -u root -p -e \"CREATE DATABASE kaza;\"\n\n# Start the server\nnode index.js\n```\n\n## API Endpoints\n\n### 1. User Signup\n**Endpoint:** `POST /signup`\n```json\n{\n  \"username\": \"testuser\",\n  \"email\": \"test@example.com\",\n  \"password\": \"password123\"\n}\n```\n\n### 2. User Signin\n**Endpoint:** `POST /signin`\n```json\n{\n  \"identifier\": \"test@example.com\",  // or \"testuser\"\n  \"password\": \"password123\"\n}\n```\n\n### 3. Update Profile (Authenticated)\n**Endpoint:** `PUT /profile`\n```json\n{\n  \"email\": \"newemail@example.com\",\n  \"password\": \"newpassword123\"\n}\n```\n\n### 4. User Signout\n**Endpoint:** `POST /signout`\n\n## Technologies Used\n- Node.js\n- Express.js\n- Sequelize (ORM)\n- MySQL\n- bcryptjs (for password hashing)\n- jsonwebtoken (for authentication)\n- cookie-parser (for handling cookies)\n\n## Notes\n- The server runs on port `3000` by default.\n- Secure cookies should be enabled in production.\n- Modify database credentials in `index.js` if needed.\n\n## License\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishpathak2%2Fkaza-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashishpathak2%2Fkaza-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishpathak2%2Fkaza-assignment/lists"}