{"id":22457998,"url":"https://github.com/munene-m/auth-server","last_synced_at":"2026-04-02T02:50:16.248Z","repository":{"id":216372052,"uuid":"741051837","full_name":"munene-m/Auth-server","owner":"munene-m","description":"Role based authentication and authorization system","archived":false,"fork":false,"pushed_at":"2024-02-05T19:07:15.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T18:13:20.697Z","etag":null,"topics":["express","nodejs","postgresql","sequelize-orm"],"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/munene-m.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}},"created_at":"2024-01-09T15:47:59.000Z","updated_at":"2024-02-05T09:44:43.000Z","dependencies_parsed_at":"2024-02-05T20:31:32.647Z","dependency_job_id":"041aa1fd-0dd4-4e9f-a966-40822f42c8f0","html_url":"https://github.com/munene-m/Auth-server","commit_stats":null,"previous_names":["munene-m/scanwize_task","munene-m/auth-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munene-m%2FAuth-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munene-m%2FAuth-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munene-m%2FAuth-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munene-m%2FAuth-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munene-m","download_url":"https://codeload.github.com/munene-m/Auth-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858434,"owners_count":20684054,"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":["express","nodejs","postgresql","sequelize-orm"],"created_at":"2024-12-06T08:10:19.989Z","updated_at":"2025-12-30T20:11:21.672Z","avatar_url":"https://github.com/munene-m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication and authorization API\n\n## Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/munene-m/Auth-server\n   ```\n\n2. **Navigate to the project location**\n\n   ```\n   cd scanwize_task\n   ```\n\n3. **Install dependencies**\n\n   ```\n   npm install\n   ```\n\n4. **Set up environment variables**\n\n   To configure the application correctly, ensure the following environment variables are set. If they are not already defined, you can set in a `.env` file at the root of the project.\n\n   - **JWT_SECRET**:\n\n     - This variable should contain the secret key used for JSON Web Token (JWT) encryption.\n\n   - **ADMIN_EMAIL**:\n\n     - Provide the email address associated with the administrator account.\n\n   - **DATABASE_URL**:\n     - Set the value to the connection string for your local PostgreSQL database.\n     - Example: `postgresql://username:password@localhost:5432/your_database_name`\n       Replace `username`, `password`, and `your_database_name` with your PostgreSQL credentials and database name.\n\n   Ensure that these variables are appropriately configured to enable the application to run smoothly.\n\n5. **Navigate to src directory**\n\n   ```\n   cd src\n   ```\n\n6. **Run database migration**\n\n   ```\n   npx sequelize-cli db:migrate\n   ```\n\n7. **Navigate back to the root of the project**\n\n   ```\n   cd ..\n   ```\n\n8. **Start the server**\n\n   ```\n   npm run start\n   ```\n\n9. **Access the API documentation:**\n\n   After starting the server, you can access the API documentation using the following link:\n\n   (http://localhost:3000/api-docs)\n\n   Open the link in your web browser to explore and interact with the available endpoints, request examples, and responses.\n\n   **Note:** Make sure the server is running (`npm run start`) before accessing the API documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunene-m%2Fauth-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunene-m%2Fauth-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunene-m%2Fauth-server/lists"}