Code Monkey home page Code Monkey logo

cah-cards's Introduction

cah-cards

REST interface to CAH card database

Prerequisites

  • PostgreSQL 9.3+
  • Perl 5.10.1+

To install prerequisite Perl modules, you can simply use cpanminus:

cpanm --installdeps .

Or if you don't have cpanminus:

curl -L https://cpanmin.us | perl - --installdeps .

Setup

CAH card data is retrieved from a PostgreSQL database. Create a database named cah and a user named cah:

createdb cah
psql -c 'CREATE ROLE "cah" WITH LOGIN' cah

Import the card data from provided dump files into the database:

psql cah < dump/cah_cards.sql

Create a file named cah_cards.conf in the root directory to configure the connection, see cah_cards.conf.example.

Then, start the application as a daemon:

perl cah_cards.pl daemon -m production -l 'http://*:8080'

Or, you can start it under the Hypnotoad prefork server:

hypnotoad cah_cards.pl

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.