{"id":26041158,"url":"https://github.com/dangkhoa2016/rails-8-authentication","last_synced_at":"2026-04-18T11:04:38.243Z","repository":{"id":279060228,"uuid":"937125304","full_name":"dangkhoa2016/Rails-8-Authentication","owner":"dangkhoa2016","description":"Simple Rails 8 application that implements authentication using the popular devise gem along with Bootstrap 5 for styling","archived":false,"fork":false,"pushed_at":"2025-03-15T07:56:24.000Z","size":1092,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T08:27:28.817Z","etag":null,"topics":["authentication","bootstrap5","devise","rails8"],"latest_commit_sha":null,"homepage":"https://3wtyq7-4000.csb.app","language":"HTML","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/dangkhoa2016.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-02-22T11:54:19.000Z","updated_at":"2025-03-15T07:56:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"1044c1d2-5edf-4a95-91ea-395a82a3a3d1","html_url":"https://github.com/dangkhoa2016/Rails-8-Authentication","commit_stats":null,"previous_names":["dangkhoa2016/rails-8-authentication"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dangkhoa2016/Rails-8-Authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangkhoa2016%2FRails-8-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangkhoa2016%2FRails-8-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangkhoa2016%2FRails-8-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangkhoa2016%2FRails-8-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dangkhoa2016","download_url":"https://codeload.github.com/dangkhoa2016/Rails-8-Authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dangkhoa2016%2FRails-8-Authentication/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265534878,"owners_count":23783908,"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":["authentication","bootstrap5","devise","rails8"],"created_at":"2025-03-07T13:19:24.020Z","updated_at":"2026-04-18T11:04:38.212Z","avatar_url":"https://github.com/dangkhoa2016.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Rails 8 Authentication with Bootstrap 5 and Devise Gem\n\nThis is a simple Rails 8 application that implements authentication using the popular `devise` gem along with Bootstrap 5 for styling. This project provides an easy-to-use authentication system with features like user registration, login, logout, and password management.\n\n## Features\n\n- User authentication (sign up, login, logout).\n- Password reset and change.\n- Bootstrap 5 integration for responsive and modern UI.\n- User management with Devise's built-in methods.\n- Customizable views and controllers for authentication.\n- Allow Super Admin to manage users and restrict access for regular users.\n- Simple filter users using javascript controller.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed on your system:\n\n- Ruby (version 3.0 or higher)\n- Rails 8.x\n- Node.js and Yarn\n- PostgreSQL or SQLite (depending on your preference)\n\n## Installation\n\nFollow the steps below to set up the project locally:\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/dangkhoa2016/Rails-8-Authentication.git\n   cd Rails-8-Authentication\n   ```\n\n2. **Install dependencies:**\n\n   Ensure you have the necessary gems installed by running:\n\n   ```bash\n   bundle install\n   ```\n\n3. **Install JavaScript dependencies:**\n\n   Install Bootstrap 5 and other JavaScript packages using Yarn:\n\n   ```bash\n   yarn install\n   ```\n\n4. **Set up the database:**\n\n   Create and migrate the database:\n\n   ```bash\n   rails db:create\n   rails db:migrate\n   ```\n\n   Additionally, you can seed the database with sample data:\n\n   ```bash\n    rails db:seed\n    ```\n\n    also, I have created a fake users at `db/seed/fake_users.rb` file, you can load it by running this command in rails console:\n\n    ```bash\n    rails c\n    load 'db/seed/fake_users.rb'\n    ```\n\n5. **Configure Devise:**\n\n   To set up Devise for user authentication, run:\n\n   ```bash\n   rails generate devise:install\n   ```\n\n   Generate the user model with Devise:\n\n   ```bash\n   rails generate devise User\n   ```\n\n   More details on Devise configuration can be found in the [Devise documentation](https://github.com/heartcombo/devise).\n\n6. **Add Bootstrap 5 to your application:**\n\n   Bootstrap 5 is included via the `yarn` package manager. You can use the default setup provided in `application.bootstrap.scss` and `application.js` files. Bootstrap is linked by default in this setup.\n\n7. **Add some ENV variables:**\n\n   You can add some ENV variables to your `.env` file, using the [.env.sample](.env.sample) file as a template, you can copy it to `.env` file and modify it as you need\n\n\n8. **Run the Rails server:**\n\n   Start the Rails development server:\n\n   ```bash\n   rails server\n   ```\n\n   Build css file:\n\n   ```bash\n    yarn build:css\n    ```\n\n    Check at [Procfile.dev](Procfile.dev) file for more information about how to run both rails and css build at the same time.\n\n9. **Access the application:**\n\n   Open your browser and navigate to `http://localhost:3000`. You should see the application with Bootstrap 5 styling and authentication features.\n\n10. **Some debug and learn:**\n    Please check at [manual](manual) folder for more information.\n\n## Usage\n\n- **Sign Up:** Create a new user account (at `http://localhost:3000/users/sign_up`), you need to check rails log to get the confirmation email link for development environment testing.\n- **Login:** Log in with your registered credentials (at `http://localhost:3000/users/sign_in`).\n- **Logout:** Log out from the application (at `http://localhost:3000/users/sign_out`).\n- **Password Reset:** Reset your password if you forget it (at `http://localhost:3000/users/password/new`).\n\n## Configuration\n\nYou can customize the Devise authentication system by modifying the following files:\n\n- `config/initializers/devise.rb` — Devise configuration settings.\n- `app/views/devise/` — Custom views for Devise (e.g., login, registration).\n- `app/controllers/application_controller.rb` — Modify any application-wide behavior.\n\n## Contributing\n\nFeel free to fork this repository and submit pull requests. You can also report issues or suggest improvements in the Issues section.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdangkhoa2016%2Frails-8-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdangkhoa2016%2Frails-8-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdangkhoa2016%2Frails-8-authentication/lists"}