Skip to content

fleximus/skyline

 
 

Repository files navigation

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

$ rebar get-deps
$ rebar compile
$ ./nitrogen_static.sh
$ ./release.sh
$ ./release_sync.sh
$ ./styles.sh
$ ./javascript.sh
$ ./start.sh

$ ./attach.sh
> 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

$ rebar get-deps
$ rebar compile
$ ./nitrogen_static.sh
$ rebar ling-build-image

$ truncate -s 100m disk
$ sudo xl create -c domain_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

About

Erlang App Store Example on N2O

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 42.1%
  • CSS 38.9%
  • Shell 11.4%
  • JavaScript 7.6%