{"id":14955477,"url":"https://github.com/thanhluanuit/bootstrap-in-rails6","last_synced_at":"2026-03-01T02:31:25.239Z","repository":{"id":40165658,"uuid":"249885619","full_name":"thanhluanuit/bootstrap-in-rails6","owner":"thanhluanuit","description":"How to use Bootstrap in Rails 6 through Webpacker","archived":false,"fork":false,"pushed_at":"2023-01-19T18:06:04.000Z","size":1322,"stargazers_count":3,"open_issues_count":34,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T13:38:55.405Z","etag":null,"topics":["bootstrap","bootstrap4","rails6","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://luanotes.com/blogs/using-bootstrap-with-webpacker-in-rails-6","language":"Ruby","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/thanhluanuit.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}},"created_at":"2020-03-25T04:19:19.000Z","updated_at":"2023-03-28T12:49:22.000Z","dependencies_parsed_at":"2023-02-11T14:30:59.390Z","dependency_job_id":null,"html_url":"https://github.com/thanhluanuit/bootstrap-in-rails6","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thanhluanuit/bootstrap-in-rails6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhluanuit%2Fbootstrap-in-rails6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhluanuit%2Fbootstrap-in-rails6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhluanuit%2Fbootstrap-in-rails6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhluanuit%2Fbootstrap-in-rails6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thanhluanuit","download_url":"https://codeload.github.com/thanhluanuit/bootstrap-in-rails6/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thanhluanuit%2Fbootstrap-in-rails6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29959037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"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":["bootstrap","bootstrap4","rails6","ruby-on-rails"],"created_at":"2024-09-24T13:11:12.799Z","updated_at":"2026-03-01T02:31:25.181Z","avatar_url":"https://github.com/thanhluanuit.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to use Bootstrap in Rails 6\n\n#### Step 1: Install Bootstrap\n```\nyarn add bootstrap\n```\n\n#### Step 2: Install Bootstrap dependencies: jQuery and popper.js\n\n```\nyarn add jquery popper.js\n``` \n\n#### Step 3: Import JavaScript Bootstrap and dependencies\n```\n# app/javascript/packs/application.js\nimport \"jquery\";\nimport \"popper.js\";\nimport \"bootstrap\";\n```\n\n#### Step 4: Import CSS Bootstrap\nAdd a folder name stylesheets in app/javascript/\n\nAdd application.scss file in app/javascript/stylesheets\n\nAdd below code to import bootstrap css:\n\n```\n# In app/javascript/stylesheets/application.scss\n@import \"~bootstrap/scss/bootstrap\"; \n```\n    \nImport CSS to application.js\n```\n# In app/javascript/packs/application.js\nimport \"../stylesheets/application\" \n```\n\n### DONE!\n\n#### See folder structure\n```cassandraql\n\napp/javascript\n├── channels\n├── packs\n│   └── application.js\n└── stylesheets\n    └── application.scss\n\n```\n\nMore details in Luanotes.com: https://luanotes.com/blogs/using-bootstrap-with-webpacker-in-rails-6\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhluanuit%2Fbootstrap-in-rails6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanhluanuit%2Fbootstrap-in-rails6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanhluanuit%2Fbootstrap-in-rails6/lists"}