/skyline

Erlang App Store Example on N2O

Primary LanguageErlang

Skyline: N2O Promo Example

This is App Store demo website. It is made with Nitrogen DSL and based on N2O. It is a demo how to use N2O in real-life applications. Feel free to use it in your projects.

Login

CSS

  • Twitter Bootstrap (LESS)
  • Skyline (LESS)

JavaScript

  • Node 0.8 minimal
  • Uglify.js tool
  • Less.js tool
  • BERT.js
  • Bullet.js

JavaScript Prerequisites

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:richarvey/nodejs
$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo npm install uglify-js -g

LXC

$ make
$ make start
$ make attach
> application:which_applications().

Xen

$ sudo apt-get install xen-hypervisor-amd64
$ echo XENTOOLSTACK=xl > /etc/default/xen
$ sudo brctl addbr docker0
$ sudo ip addr add 172.16.42.1/24 dev docker0

$ make
$ rebar ling-build-image

$ truncate -s 100m disk
$ sudo xl create -c xen.config
> application:start(web).

Init DB (Mnesia)

> kvs:join().
> kvs:init_db().
> kvs:dir().
> kva:all(user).

And open in browser

Credits

  • Maxim Sokhatsky
  • Andrew Zadorozhny

OM A HUM