{"id":16157654,"url":"https://github.com/randilt/passportjs-authentication-boilerplate","last_synced_at":"2025-04-07T01:40:25.668Z","repository":{"id":192376298,"uuid":"686605926","full_name":"randilt/passportjs-authentication-boilerplate","owner":"randilt","description":"Boilerplate for username , password authentication using nodejs","archived":false,"fork":false,"pushed_at":"2023-09-03T18:12:42.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T07:15:43.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/randilt.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}},"created_at":"2023-09-03T11:10:17.000Z","updated_at":"2023-12-08T15:32:06.000Z","dependencies_parsed_at":"2023-09-04T14:26:18.435Z","dependency_job_id":"ff5d0dfc-76a9-4e21-a3bc-4ddd68ac388d","html_url":"https://github.com/randilt/passportjs-authentication-boilerplate","commit_stats":null,"previous_names":["randilt/passportjs-authentication-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randilt%2Fpassportjs-authentication-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randilt%2Fpassportjs-authentication-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randilt%2Fpassportjs-authentication-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randilt%2Fpassportjs-authentication-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/randilt","download_url":"https://codeload.github.com/randilt/passportjs-authentication-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247578624,"owners_count":20961269,"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":"2024-10-10T01:50:14.144Z","updated_at":"2025-04-07T01:40:25.649Z","avatar_url":"https://github.com/randilt.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Boilerplate code for authentication using passport.js \n\nUsername, password authentication using passportjs.\n\n\n\n\n# Username-Password Authentication Boilerplate with Passport.js\n\nThis is a simple boilerplate for implementing username-password authentication using the Passport.js library in Node.js. You can use this boilerplate to quickly set up user authentication in your Node.js projects.\n\n## Getting Started\n\nFollow the steps below to set up and run the authentication system locally on your computer.\n\n### Prerequisites\n\nBefore you begin, make sure you have the following installed on your system:\n\n- Node.js: [Download Node.js](https://nodejs.org/)\n- MongoDB Locally or atlas : [Download MongoDB](https://www.mongodb.com/try/download/community)\n\n### Installation\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/randilt/username-password-auth-boilerplate.git\n\n1. Navigate to the project directory:\n\n   ```bash\n   cd username-password-auth-boilerplate\n\n1. Install the required npm packages:\n\n   ```bash\n   git clone https://github.com/randilt/username-password-auth-boilerplate.git\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   npm install\n\n\n\n## Configuration\n\nUpdate the MongoDB Connection String:\n\nOpen the config/database.js file.\nReplace the MongoDB connection string with your own. You can use a local MongoDB instance or a cloud-based MongoDB service like MongoDB Atlas.\nUpdate App Configuration (Optional):\n\nYou can customize the application's configuration in the app.js file, such as the session settings or authentication strategies. After updating the database connetion strings in both app.js and config/database.js start the application by running this command in the terminal\n    \n      node app.js\n\n## Usage\n\nVisit the /register route to create a new user account.\nVisit the /login route to log in with your credentials.\nOnce logged in, you can access the protected /home route.\nThe application includes authentication middleware to ensure that only authenticated users can access the /home route.\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandilt%2Fpassportjs-authentication-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandilt%2Fpassportjs-authentication-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandilt%2Fpassportjs-authentication-boilerplate/lists"}