Giter Site home page Giter Site logo

tharsk's Introduction

φarsk!

An open source, interactive Proto-Indo-European search tool.

φarsk is built using Python, Twisted (for async networking), the simple web framework Klein (an implementation of Bottle for Twisted), Bootstrap, and MongoDB.

Project

Features

Current features include:

  • TBD

Features currently underdevelopment can be viewed in the TODO file.

Dependencies

This project has the following dependencies:

These need to be installed before you can run the code in this project. See below for instructions.

Some of the utilities for building searchable content make use of the following additional libraries:

These will be installed for you when you run make install-deps (see below for more info).

The Name

The following names were considered for the project (taken from the first word list imported into the application, Proto-Celtic):

  • bargo: "book"
  • swiljāje: "search"
  • φar-: "seek"
  • φarsk-e/o-: "ask" and in the imperative, φarsk!

Installation

  1. Download and install node.js for your system: http://nodejs.org/#download (this is only needed for Bootstrap)
  2. Download and install MongoDB for your system: http://www.mongodb.org/downloads. For most, copying the contents of the downloaded folder's bin/* sub-directory to /usr/local/bin will suffice.
  3. From a terminal, check out the φarsk code: git clone https://github.com/oubiwann/tharsk.git
  4. Enter the φarsk dir and install the app: cd tharsk && make install-deps

If you would like to re-create the database from sources, you can do that with the command given below. However, beware:

This will DELETE ALL YOUR DATA! All φarsk data will be dropped and recreated!

You've been warned. Here's how you do it: make init-db

Running the Server

For development, you'll need to start up the MongoDB server:

$ make start-mongo

And then you can fire up the front-end:

$ make run-dev

For production, you can use these:

  1. In the φarsk dir, run the tharsk server: make start-prod
  2. When you're done, shut it down: make stop-prod

Using the Command Line Tool

In order to effectively use the tharsk command-line Twisted plugin, you will need to set your Python encoding to UTF-8. Here's how:

$ export PYTHONIOENCODING=utf-8

If you do not set this variable, you will see numerous encoding/decoding errors when you try to execute scripts that display UTF-8 output to the terminal.

The same tool that you run tharsk from is used to parse and execute commands from a system shell. For instance:

$ twistd tharsk dictionaries

This will list the supported dictionaries.

To find out what the list of supported tharsk subcommands are, simply use the --help parameter:

$ twistd tharsk --help

Some subcommands will have additional options, and those are also available via the help parameter:

$ twistd tharsk word-list --help

tharsk's People

Stargazers

 avatar ixaxaar avatar

Watchers

James Cloos 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.