It is an example about how to write a simple Todo application with Leptus, which is an Erlang RESTful micro-framework. Leptus built on top of Cowboy.
There is a step-by-step tutorial about this repo in this page.
Simple todo list by Leptus/Erlang
As Mentioned in this document When i am trying to ./rebar compile
after ./rebar get-deps
, I am getting the below error:
==> cowlib (compile)
Compiled src/cow_qs.erl
Compiled src/cow_spdy.erl
Compiled src/cow_http.erl
Compiled src/cow_date.erl
Compiled src/cow_cookie.erl
Compiled src/cow_mimetypes.erl
==> ranch (compile)
Compiled src/ranch_transport.erl
Compiled src/ranch_sup.erl
Compiled src/ranch_tcp.erl
Compiled src/ranch_protocol.erl
Compiled src/ranch_ssl.erl
Compiled src/ranch_listener_sup.erl
Compiled src/ranch_server.erl
Compiled src/ranch_app.erl
Compiled src/ranch_acceptors_sup.erl
Compiled src/ranch_acceptor.erl
Compiled src/ranch_conns_sup.erl
Compiled src/ranch.erl
==> cowboy (compile)
Compiled src/cowboy_middleware.erl
Compiled src/cowboy_sub_protocol.erl
Compiled src/cowboy_sup.erl
Compiled src/cowboy_websocket_handler.erl
Compiled src/cowboy_static.erl
Compiled src/cowboy_spdy.erl
Compiled src/cowboy_router.erl
/ErLang/LeptusTodo-master/deps/cowboy/src/cowboy_websocket.erl:174: Warning: call to crypto:sha/1 will fail, since it was removed in 20.0; use crypto:hash/2
Compiled src/cowboy_websocket.erl
Compiled src/cowboy_protocol.erl
Compiled src/cowboy_rest.erl
Compiled src/cowboy_loop_handler.erl
Compiled src/cowboy_multipart.erl
Compiled src/cowboy_http_handler.erl
Compiled src/cowboy_handler.erl
Compiled src/cowboy_clock.erl
Compiled src/cowboy_client.erl
Compiled src/cowboy_req.erl
Compiled src/cowboy_app.erl
Compiled src/cowboy_bstr.erl
Compiled src/cowboy.erl
Compiled src/cowboy_http.erl
==> jiffy (compile)
Compiled src/jiffy.erl
Compiled src/jiffy_utf8.erl
Compiling c_src/decoder.c
Compiling c_src/encoder.c
Compiling c_src/jiffy.c
Compiling c_src/utf8.c
Compiling c_src/util.c
Compiling c_src/doubles.cc
Compiling c_src/double-conversion/bignum-dtoa.cc
Compiling /ErLang/LeptusTodo-master/deps/jiffy/c_src/double-conversion/bignum.cc
/ErLang/LeptusTodo-master/deps/jiffy/c_src/double-conversion/bignum.cc:758:7: error: variable 'i' is incremented both in the loop header and in the loop body [-Werror,-Wfor-loop-analysis]
++i;
^
/ErLang/LeptusTodo-master/deps/jiffy/c_src/double-conversion/bignum.cc:753:72: note: incremented here
for (int i = other.used_digits_ + exponent_diff; i < used_digits_; ++i) {
^
1 error generated.
ERROR: compile failed while processing /ErLang/LeptusTodo-master/deps/jiffy: rebar_abort
Please help...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.