GithubHelp home page GithubHelp logo

jacktang / rebar-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cybergrind/rebar-templates

4.0 3.0 1.0 776 KB

RoR like generator for Erlang/OTP

License: Apache License 2.0

Erlang 76.11% Makefile 4.85% Shell 14.52% HTML 4.52%

rebar-templates's Introduction

Rebar Templates

Rebar provides rails generator like facility, and Rebar-Templates give Erlang developers more templates and workflow.

How to use templates

To make the templates available, you need to clone the repo to your ~/.rebar/templates directory:

   $ git clone git://github.com:jacktang/rebar-templates.git
   $ ln -s /path/to/rebar-templates ~/.rebar/templates

Templates

Rebar project

   $ ./rebar create template=project projectid=kickstart

OTP standard application

   $ cd kickstart
   $ rebar create template=stdapp appid=<app_name>
   $ rebar create template=gensrv srvid=<srv_name>
   $ rebar create template=genfsm fmsid=<fsn_name>
   $ rebar create template=genevent eventid=<event_name>

Cowboy application and handlers

   $ cd kickstart
   $ rebar create template=cowboy_app appid=<app_name>
   $ rebar create template=cowboy_handler handlerid=chat handlertype=websocket

Wx-widget

   $ rebar create template=wx_object widgetid=button_ext

Test-driven skeleton? Of course! And generate test case only like below

  $ rebar create template=test testmod=<module_name> test=ct
  $ rebar create template=test testmod=<module_name> test=eunit
  $ rebar create template=test testmod=<module_name> test=spec

Console with hot-load in developement mode

Edit template_vars in rebar.config and execute below command. NOTE: rebar should be built from the branch

  $ rebar create template=dev_console

Requirements: Erlang, Git

See more info on the service layout:

rebar-templates's People

Contributors

alvelcom avatar byaruhaf avatar lukyanov avatar mbbx6spp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rocketszn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.