Skip to content

Japanese Content and Language Integrated Learning (CLIL) system.

License

Notifications You must be signed in to change notification settings

gitter-badger/humantranslated

 
 

Repository files navigation

HumanTranslated

Japanese Content and Language Integrated Learning (CLIL) system.

Requirements

  • node.js
  • npm
  • bower
  • mongodb
  • mecab

Getting started

This is very basic at the moment. Currently it is a simple REST API with flimsy Oauth2 integration.

To get started follow the steps below to install the npm modules and import the dummy data. To access the data from the browser open

  1. Clone the repo:

git clone git@github.com:scmorrison/humantranslated.git
  1. Install node modules:

cd humantranslated
npm i
  1. Install MeCab

sudo apt-get install mecab

Note: On Debian you might have to create a symlink for libmecab.so:

sudo ln -s /usr/lib/libmecab.so.2 /usr/lib/libmecab.so
  1. Load dummy data (from a separate shell)

# This needs to be reworked to match new structure.
# npm run dummy

HTTP Methods

Installing Mecab on OSX

###Installing Homebrew

The first step is to make sure that you have Homebrew installed. Open the Terminal.app application and copy and paste the following:

brew -v

If you have not installed Homebrew yet, all you need to do is run the following command:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

###Installing Mecab

Next, let's install Mecab with our new package manager.

brew install mecab

We must also install another package mecab-ipadic:

brew install mecab-ipadic

##Installing Mecab-ipadic via source

If the steps above do not work, you will have to install Mecab from source. You can create a directory in your $HOME directory by using the mkdir command:

mkdir src/

Then CD into the folder and use

wget https://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz

Note: If you don't have wget installed, then you will need to use the following command:

brew install wget

Use the tar command to decompress the folder:

tar xzvf  mecab-ipadic-2.7.0-20070801.tar.gz

A new folder will appear. The last step is to cd back into the Humantranslated direcory and copy the script into your $PATH.

cp scripts/mecab-config /usr/bin/local

You should now be able to use the mecab command:

mecab

TODO

  • Build out task runner scripts for npm.
  • API endpoints overhall.
  • Implement Oauth2 examples.
  • Implement Oauth2 signup / login for third-party Oauth2 providers (Facebook, Google, etc.).
  • Implement a JS coding standard (possibly npm's).

License

GPLv2

Author Information

Sam Morrison @scmorrison

Kevin O'Neil @oneilkevin

Shinsuke Miyamoto @jonasuke

Sugiyama-san @sugiyama-v

About

Japanese Content and Language Integrated Learning (CLIL) system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.3%
  • HTML 18.4%
  • Shell 1.3%
  • CSS 1.0%