The quickest way to test out or prototype something in Primer ViewComponents without having to set up a new project.
- Click
Code
- Click
new codespace
- Pick any machine type and click
create codespace
- Wait until the container is built and
Running postCreateCommand...
is finished running in the bottomTERMINAL
panel. - Now in the bottom
TERMINAL
panel write therails server
command and hit enter. - When it's finished building your project click
Open
to open a preview of it. If this doesn't happen clickPORTS
in the bottom window and open theLocal Address
from there. - Now you are in Mona's playground ๐ and you can start editing the
app/views/hello/index.html.erb
file to play around with Primer ViewComponents.
Instructions.mov
- Clone the project
- Run
bundle install
- Run
rails server
- Open http://127.0.0.1:3000 to view it in the browser.
- Go to
app/views/hello/index.html.erb
to start prototyping.
- ๐ง๐ปโ๐ป Get used to using Codespaces
- ๐ฅบ You're a new Hubber, you have enough to learn already
- ๐งโโ๏ธ Prototype layouts outside the main platform
- ๐ No clutter on your local computer
- ๐ฅด No local problems
โถ๏ธ Send over a preview link while working live on your code, no waiting for deploy previews needed.- ๐ No need to set up a new project, just instantly start prototyping
- ๐งช You want to learn Rails