• Stars
    star
    56
  • Rank 512,807 (Top 11 %)
  • Language
    Elixir
  • License
    GNU General Publi...
  • Created about 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

minimum elm + phoenix setup, with webpack

WARNING: I haven't been paying much attention to Phoenix lately so this repo is likely to be out of date.

Elm + Phoenix

This is a minimum setup for an Elm + Phoenix project, using webpack for bundling.

This is intended to be a teaching tool rather than a production boilerplate, therefore the webpack config is as small as possible, and there is only very basic Phoenix usage.

The Phoenix application has been named Foo to make it easy to identify where your application name is used.

REQUIREMENTS

FEATURES

BACKEND:
Basically just $ mix phx.new foo --no-brunch, with changes made to ./lib/foo/web/templates/layout/app.html.eex and ./lib/foo/web/templates/page/index.html.eex to load up the Elm app.
FRONTEND:
All related files are found in ./assets, including package.json, elm-package.json and webpack.config.js. Therefore npm install and elm-package install will have to be run from there.
SCRIPTS:
As a convenience due to the location of package.json, I have added a custom mix task (./lib/mix/npm.ex) which allows the execution of npm run scripts from the project root using mix: mix npm build, mix npm watch, etc.

USAGE

INITIAL SETUP:

  • $ cd assets
  • $ npm install (Gets npm dependencies)
  • $ elm-package install (Gets Elm dependencies)
  • $ cd ..
  • $ mix deps.get (Gets Phoenix dependencies)
  • $ mix ecto.create (Sets up database)

TO RUN:

More Repositories

1

rust-hasura

Rust / Hasura / GraphQL
Rust
139
star
2

solana-rust-examples

Demonstrating how to use Rust to interact with the Solana blockchain.
Rust
64
star
3

learn-aws

FAC Workshop - November 2015
JavaScript
10
star
4

home

overengineering practice
Elm
7
star
5

pow-dapp

The world's first proof-of-work NFT πŸ’₯
Elm
7
star
6

solana-connect

Standalone wallet UI for Solana dApps
Elm
6
star
7

alumni

alumni display page for https://foundersandcoders.com/
Elm
6
star
8

elm-webpack

An Elm + Webpack boilerplate with live reload.
Elm
5
star
9

emojifier

text is boring, make it less so
JavaScript
4
star
10

debugging-workshop

FAC Workshop - April 2016
JavaScript
4
star
11

nodejs-server-examples

Node.js glitches for https://foundersandcoders.com/
4
star
12

rotools-js

npm package for functional utilities
JavaScript
4
star
13

ooft

image file size shrinker for front end
JavaScript
3
star
14

elm-reloader

Live reload Webpack plugin for Elm.
JavaScript
3
star
15

sui-zk-wallet

Elm
3
star
16

bash-export

how to use bash to export your vars
3
star
17

pow-program

Rust
3
star
18

helpers

Elm
2
star
19

bonkcinerator

https://bonkcinerator.com/
Elm
2
star
20

pup

deploy purescript using up
PureScript
2
star
21

psst

e2e encrypted chat pwa
Elm
2
star
22

promise-workshop

FAC/GSG Workshop - April 2017
JavaScript
1
star
23

rotools

Rust and stuff
Rust
1
star
24

nugget-frontend

Rapid QR code payments, powered by Solana
Elm
1
star
25

vanilla-elixir-server

Elixir
1
star
26

idiom-generator

aws lambda twitter bot
JavaScript
1
star
27

haskell-ajax

i'm basically an expert now
Haskell
1
star
28

elm-port-gen

Elm
1
star
29

points

Elm
1
star
30

push

JavaScript
1
star
31

vigenere

npm package for basic encoding and decoding
JavaScript
1
star