https://github.com/elcritch/surface_bulma_widgets_playground
Basic Phoenix LV Playground for testing and developing surface_bulma_widgets
https://github.com/elcritch/surface_bulma_widgets_playground
Last synced: 3 months ago
JSON representation
Basic Phoenix LV Playground for testing and developing surface_bulma_widgets
- Host: GitHub
- URL: https://github.com/elcritch/surface_bulma_widgets_playground
- Owner: elcritch
- License: mit
- Created: 2021-05-22T07:31:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-22T06:32:05.000Z (about 4 years ago)
- Last Synced: 2025-07-01T15:06:04.859Z (3 months ago)
- Language: Elixir
- Size: 470 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SurfaceBulmaWidgetsPlayground
To start your Phoenix server:
* Install dependencies with `mix deps.get`
* Install Node.js dependencies with `npm install` inside the `assets` directory
* Start Phoenix endpoint with `mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Setting Up Bulma, Surface, and Surface Bulma Widgets
Add mix deps:
```elixir
{:surface, "~> 0.4.0", override: true},
{:surface_bulma_widgets, "~> 0.1.0", path: "../surface_bulma_widgets"},
```Add CSS deps:
```sh
npm install bulma
npm install bulma-extensions
## Recommended:
npm install --save-dev css-width-scale-dc
npm i --save @fortawesome/fontawesome-free
```Add CSS/SASS:
```css
@charset "utf-8";
@import "../node_modules/bulma/bulma.sass";
@import "../node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "../node_modules/css-width-scale-dc/css/css-width-scale.css";
```Replace default view:
```sh
sed -i 's|live "/", PageLive, :index|live "/", SurfaceWidgetsLive, :index|' lib/*_web/router.ex
rm lib/surface_bulma_widgets_playground_web/live/page_live.ex
rm lib/surface_bulma_widgets_playground_web/live/page_live.html.leex
```