{"id":40003231,"url":"https://github.com/devgauravjatt/express-jwt-auth","last_synced_at":"2026-01-19T02:02:54.209Z","repository":{"id":320710068,"uuid":"1083096864","full_name":"devgauravjatt/express-jwt-auth","owner":"devgauravjatt","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-25T10:44:56.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T12:26:51.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/devgauravjatt.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-25T10:40:55.000Z","updated_at":"2025-10-25T10:46:08.000Z","dependencies_parsed_at":"2025-10-25T12:26:55.574Z","dependency_job_id":"c9da5fc8-4a67-4fc9-a2b6-9f0c37aaf239","html_url":"https://github.com/devgauravjatt/express-jwt-auth","commit_stats":null,"previous_names":["devgauravjatt/express-jwt-auth"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devgauravjatt/express-jwt-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fexpress-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fexpress-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fexpress-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fexpress-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgauravjatt","download_url":"https://codeload.github.com/devgauravjatt/express-jwt-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgauravjatt%2Fexpress-jwt-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28557784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-19T02:02:35.444Z","updated_at":"2026-01-19T02:02:54.205Z","avatar_url":"https://github.com/devgauravjatt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ express-jwt-auth - Easy JWT Authentication Made Simple\n\n## 🔗 Repository\n\n[![GitHub](https://img.shields.io/badge/GitHub-express--jwt--auth-blue)](https://github.com/devgauravjatt/express-jwt-auth)\n\n---\n\n## 🚀 Getting Started\n\nFollow these steps to clone and run the application on your computer.\n\n### 🔍 Overview\n\nThis application provides authentication and authorization using Node.js, Express, JWT, Sequelize, and MySQL. It includes role management for users and admins, custom middleware, and API documentation via Swagger UI.\n\n## 📥 Installation\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/devgauravjatt/express-jwt-auth.git\ncd express-jwt-auth\n```\n\n### Install Dependencies\n\n```bash\nnpm install\n```\n\n### Set up Environment Variables\n\nCreate a `.env` file in the root directory and configure the following variables:\n\n```env\nDB_HOST=localhost\nDB_USER=your_mysql_user\nDB_PASS=your_mysql_password\nDB_NAME=auth_jwt\nJWT_SECRET=your_secret_key\nPORT=3000\n```\n\n### Set up the Database\n\nMake sure you have MySQL running. Create a database named `auth_jwt`, and the application will automatically set up the necessary tables on first run.\n\n### Start the Application\n\n```bash\nnpm start\n```\n\nFor development with auto-reload:\n\n```bash\nnpm run dev\n```\n\nYour application will start running on `http://localhost:3000`.\n\n## 📜 Documentation\n\nThe application comes with Swagger UI documentation. Once the server is running, access the documentation by navigating to `http://localhost:3000/api-docs` in your web browser. This documentation provides details on how to use the API endpoints.\n\n## 🎭 Features\n\n- **User Registration**: Users can create accounts.\n- **Login**: Users can log in with their credentials securely.\n- **Role Management**: Administrators can manage user roles.\n- **Token-Based Authentication**: JWT is used for securing routes.\n- **Custom Middleware**: Middleware functions enhance security and flexibility.\n- **Automated Testing**: Includes tests with Jest and Supertest to ensure reliability.\n\n## 🔧 Technologies Used\n\nThis project uses several technologies to deliver its functionality:\n\n- **Node.js**: Fast and scalable JavaScript runtime.\n- **Express**: Web framework for building applications.\n- **Sequelize**: ORM for interacting with MySQL.\n- **JWT**: For secure authentication.\n- **Bcrypt.js**: For hashing passwords.\n- **Swagger UI**: For API documentation.\n- **Jest / Supertest**: For testing.\n\n## 🌐 Community \u0026 Support\n\nIf you have questions or feedback, feel free to open an issue on the [GitHub repository](https://github.com/devgauravjatt/express-jwt-auth). Your input helps improve the project. Make sure to browse through existing issues for common questions and solutions.\n\n---\n\n## 📝 License\n\nThis project is open source and available for use and modification.\n\n---\n\n**Enjoy building secure authentication systems with JWT!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgauravjatt%2Fexpress-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgauravjatt%2Fexpress-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgauravjatt%2Fexpress-jwt-auth/lists"}