bigpresh / dancer Goto Github PK
View Code? Open in Web Editor NEWThis project forked from perldancer/dancer
Minimal-effort oriented web application framework for Perl (port of Ruby's Sinatra)
This project forked from perldancer/dancer
Minimal-effort oriented web application framework for Perl (port of Ruby's Sinatra)
Dancer The easiest way to write a webapp with Perl === ABOUT === That project intends to become a port of Ruby's Sinatra framework: a framework for building web application with minimal-effort in mind. The user should be able to define a webapp with very few lines of codes. === NEWS === Dancer's development moves very fast, to stay tuned follow sukria on Twitter: http://twitter.com/sukria or his blog http://sukria.net/fr/tag/Dancer === EXAMPLE === To create a new Dancer application, use the helper script "dancer" provided with this distribution: $ dancer -a mywebapp + mywebapp + mywebapp/config.yml + mywebapp/views + mywebapp/views/layouts [..] You have then a new Dancer application in 'mywebapp'. Here is an example of a webapp built with Dancer: # webapp.pl #!/usr/bin/perl use Dancer; get '/' => sub { "Hello There!" }; get '/hello/:name' => sub { "Hey ".params->{name}.", how are you?"; }; post '/new' => sub { "creating new entry: ".params->{name}; }; Dancer->dance; When running this script, a webserver is running and ready to serve: $ perl ./webapp.pl >> Listening on 127.0.0.1:3000 == Entering the development dance floor ... Then it's possible to access any route defined in the script: $ curl http://localhost:3000/ Hello There! === DEPENDENCIES === Dancer depends on the following modules - HTTP::Server::Simple::PSGI - HTTP::Body - Exception::Class Optional modules may be needed if you want to use soem features (but are not required for a basic usage). Dependency-checks are performed at runtime. Most common modules you may want are: - Template (for Template::Toolkit support) - YAML (for configuration files) - Plack (if you want to deploy your application with PSGI) === PRODUCTION MATTERS === This is a work in progress. Dancer supports PSGI/Plack, to run a Dancer app with PSGI/Plack just bootstrap your application with the helper script `dancer' like the following: $ dancer -a MyWebApp You'll find a file in there called `app.psgi', use this file to configure your PSGI environment, as explained in the revelant documentation of your PSGI server. For instance, with plackup, just do the following: $ plackup -a app.psgi === WEBSITE === For more details about the project, checkout the official website: http://dancer.sukria.net or checkout the documentation at http://search.cpan.org/dist/Dancer/ === CONTACT === You can reach the development team on IRC: irc.perl.org, chan #dancer
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.