https://github.com/renatopanda/rails6-sb-admin-2-template
Rails6 + Webpack4 + Vagrant + SB Admin 2 bootstrap template
https://github.com/renatopanda/rails6-sb-admin-2-template
rails rails6 sbadmin2 vagrant webpack webpack4
Last synced: 10 months ago
JSON representation
Rails6 + Webpack4 + Vagrant + SB Admin 2 bootstrap template
- Host: GitHub
- URL: https://github.com/renatopanda/rails6-sb-admin-2-template
- Owner: renatopanda
- Archived: true
- Created: 2019-12-28T19:37:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T04:43:33.000Z (over 4 years ago)
- Last Synced: 2024-09-27T15:04:12.263Z (almost 2 years ago)
- Topics: rails, rails6, sbadmin2, vagrant, webpack, webpack4
- Language: HTML
- Size: 2.88 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails 6 + Webpack 4 + Vagrant + SB Admin 2 template
An empty Rails 6 project built with webpack 4 to manage JS and CSS, which includes the SB Admin 2 bootstrap template, using a Vagrant VM
## Installation
With VirtualBox 6 and Vagrant 2 installed, just clone the repository and run `vagrant up`.
## Usage
In the project folder (host OS), open a console and run the following commands. Under Windows the console must have ssh (e.g., Git bash) and execute with admin privileges in order to activate symlinks support (needed by yarn/npm).
```bash
# inside the project folder
vagrant up # Start the vm
vagrant ssh # connect to the provisioned vm
```
All the code / tools run inside the vm, e.g.:
```bash
cd /vagrant
rails s -b 0.0.0.0
WEBPACKER_DEV_SERVER_HOST=0.0.0.0 ./bin/webpack-dev-server # run this on a 2nd console
```
The project should be accessible under http://localhost:3000 with webpacker providing hot reload.
When finished just logout and halt the VM:
```bash
logout # or press Ctrl+D
vagrant halt
```
## Details
To be continued... (describe the steps to create this and what is included or used).
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.