• Stars
    star
    55
  • Rank 537,381 (Top 11 %)
  • Language
    Elixir
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated over 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
140
star
2

solana-rust-examples

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

mineral-app

TypeScript
27
star
4

solana-connect

Standalone wallet UI for Solana dApps
Elm
11
star
5

mineral

Move
11
star
6

learn-aws

FAC Workshop - November 2015
JavaScript
10
star
7

pow-dapp

The world's first proof-of-work NFT ๐Ÿ’ฅ
Elm
9
star
8

home

overengineering practice
Elm
7
star
9

alumni

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

elm-webpack

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

emojifier

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

debugging-workshop

FAC Workshop - April 2016
JavaScript
4
star
13

elm-reloader

Live reload Webpack plugin for Elm.
JavaScript
4
star
14

rotools-js

npm package for functional utilities
JavaScript
4
star
15

nodejs-server-examples

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

ooft

image file size shrinker for front end
JavaScript
3
star
17

sui-zk-wallet

Elm
3
star
18

bash-export

how to use bash to export your vars
3
star
19

helpers

Elm
2
star
20

bonkcinerator

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

pup

deploy purescript using up
PureScript
2
star
22

psst

e2e encrypted chat pwa
Elm
2
star
23

pow-program

Rust
2
star
24

promise-workshop

FAC/GSG Workshop - April 2017
JavaScript
1
star
25

rotools

Rust and stuff
Rust
1
star
26

nugget-frontend

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

vanilla-elixir-server

Elixir
1
star
28

idiom-generator

aws lambda twitter bot
JavaScript
1
star
29

haskell-ajax

i'm basically an expert now
Haskell
1
star
30

elm-port-gen

Elm
1
star
31

points

Elm
1
star
32

push

JavaScript
1
star
33

vigenere

npm package for basic encoding and decoding
JavaScript
1
star
34

cli-publish

TypeScript
1
star
35

time-locked-balance

Move
1
star