Giter Club home page Giter Club logo

lexicon's Introduction

Status

The build is broken, and re-designing the program. What's changing:

  1. We'll have two places where to store the data a. A sqlite database for local usage only b. An API for distributed usage (i.e., can be used from multiple computers)
  2. I've defined a Dictionary interface with the functions that each dictionary type (sqlite, api, etc.) must implement
  3. The source of the definitions will continue to be dictionaryapi.com and it will be queried by this program
  4. The WOD will come from a separate source (the wod service), not part of the dictionary API

-- # Lexicon A command line lexicon (dictionary).

Prerequisites

  • Go
  • SQLite (optional, for data browsing)

Setup

Create the SQLite database and move the file to its final destination.

sqlite3 lexicon.sqlite < schema.sql
mv lexicon.sqlite /path/to/db/

Set the dictionaryapi.com key in your environment:

set DICTIONARY_API_KEY="..."

Build the binary:

go build

How to use

Simply execute the binary like so:

./lexicon

You can also install the binary so it's available everywhere. Just make sure the $GOPATH/bin/ directory is part of your $PATH:

go install

lexicon's People

Contributors

rendon avatar

Watchers

 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.