Coder Social home page Coder Social logo

chenshuiluke / cortexdictionary Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 3.06 MB

A dictionary app that uses multiple sources to retrieve the best definitions for you.

HTML 6.58% TypeScript 68.06% CSS 3.61% JavaScript 21.75%
nativescript dictionary angular typescript android learning vocabulary vocabulary-builder dictionary-learning

cortexdictionary's Introduction

Get it on Google Play

Running/Running

  1. Run sudo npm install -g nativescript
  2. cd into the repo directory and run npm install
  3. After you install the nativescript CLI and all other basic requirements, like the Android Sdk, you'll need to configure your environment variables.

To do so, just create two files app/environment/environment.prod.ts and app/environment/environment.ts and give them both the following content:

export const environment = {
    oxford_api:{
		base_url: "https://od-api.oxforddictionaries.com/api/v1",
		app_id: "<app_id>",
		app_key: "<app_key>"
    },
    urban_dict_api:{
		base_url: "http://api.urbandictionary.com/v0/define"
    },
	word_api:{
		base_url: "https://wordsapiv1.p.mashape.com/words",
		app_id: "cortexdictionary_5a47e0a0e4b03dc727eee34d",
		app_key: "qjesu1R7WNmshQmu2eq4OPlN9QdSp14YSaUjsnO44eG5ARVbkr"
	},
	prod: true
	//Change this to false when not bundling with webpack
	//Change to true when bundling with webpack
}

Of course, you need to replace <app_id> and <app_key> with your own app id and key for the Oxford API.

  1. After connecting your Android device/emulator to adb, run the app with tns run android --bundle --env.uglify --env.aot --env.snapshot
  2. Build the app with tns build android --bundle --env.uglify --env.aot --env.snapshot

cortexdictionary's People

Contributors

chenshuiluke avatar

Stargazers

 avatar

Watchers

 avatar  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.