Drab (DOM access from the server) proof-of-concept and playground
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
priv/templates/drab
test
web
.gitignore
README.md
brunch-config.js
build_prod.sh
iex.sh
iex1.sh
iex2.sh
mix.exs
mix.lock
package.json
start.sh
stop.sh
sys.config

README.md

Drab Proof of Concept

Accessing DOM objects from the server side.

This is the source code for the Drab Proof of Concept page.

Please check the Drab Source.

Installation

First, have Erlang and Elixir installed. Then install hex

mix local.hex

Download and install Drab-Poc:

git clone git@github.com:grych/drab-poc.git
cd drab-poc
mix deps.get

Get node.js and npm. Then install brunch packages:

npm install && node node_modules/brunch/bin/brunch build

If developing a production version, create config/prod.secret.exs (it is not under git) and compile all:

MIX_ENV=prod mix compile
node_modules/brunch/bin/brunch build --production
MIX_ENV=prod mix phoenix.digest

Start the server

mix phoenix.server

On production

PORT=6503 MIX_ENV=prod mix phoenix.server

Author

This software is written by Tomek 'Grych' Gryszkiewicz. Do not hesitate to contact me at grych@tg.pl or visit my web page.