Giter Site home page Giter Site logo

stackoverflow-72096513-sample-catalyst-app's Introduction

This is a sample application for my answer to this Stack Overflow question.

To use it, you first need to install its Perl dependencies. This can be done with cpanm, or by looking at the cpanfile and installing manually. You also need sqlite3.

$ cpanm --installdeps .

Next you need to create the database.

$ sqlite3 myapp.db <db.sql

To start the application, run the following command in one terminal.

$ perl script/myapp_server.pl
...
HTTP::Server::PSGI: Accepting connections at http://0:3000/

In a different terminal, you can now curl the application.

$ curl -X POST localhost:3000/user
{"id":1,"number_of_writes":1}

There is also test script that will create multiple users and call write operations on them several times at script/test.pl.

stackoverflow-72096513-sample-catalyst-app's People

Contributors

simbabque avatar

Watchers

James Cloos avatar  avatar

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.