Git Product home page Git Product logo

lookup's Introduction

Lookups

Tasks

remains

function on / off
pick up sentence
oauth(goole, twitter, facebook...)
cross domain authentication
parmanent link, sharing items
quiz
popup dictionary
local <-> server database sync
user table

done

Mongoose schemas

var lookupSchema = new mongoose.Schema({  
  url: {type: String, index: true},  
  title: {type: String},  
  word: {type: String},  
  sentence: {type: String},  
  user_id: {type: Number},  
  private: {type: Boolean},  
  created: {type: Date, default: Date.now, required: true}  
});  
var Lookup = mongoose.model('Lookup', lookupSchema);

Some thoughts about structure

user table

{
  id:
  mail:
  pass:
  facebook:
  twitter:
}

words table

{
  id: 65143,
  note: 'dafafaf',
  private: true // default true
},
{
  id: 132451, // unique
  sentence: 'mongo is cool.', // required
  url: 'url1',
  words: ['mongo', 'cool'],
  definition: 'document db',
  private: true,
  user_id: '13c2b49a96',
  update_at: '2013-12-16'
},
{
  sentence: 'mongo will cool.',
  url: 'url1',
  words: ['mongo'],
  definition: 'document db',
  note: 'hoge',
  user_id: '13c2b49a96',
  update_at: '2013-12-16'
},
{
  word: 'mysql',
  url: 'url2',
  update_at: '2013-11-15'
},
{
  word: 'postgres',
  url: 'url1',
  update_at: '2013-07-05'
},
..

url uniqe Structure

schema

{
  url: 'google',
  words: [slept: {model: 'sleep', en: 'MONG'}, mysql: {en: 'MY_SQL', ..}, ..],
  contents: 'title: afdhafd   body: hogehogehoge',
  user_id: '1341',
  updated: '2013-12-16'
},
{
  url: 'google',
  words: [riak: {en: 'RIAK', ..}, mysql: {en: 'MY_SQL'}, ..],
  user_id: '531413',
  updated: '2013-12-16'
},
{
  url: 'yahoo',
  words: [melissa: 'MELISSA', ..]
  ..
},
..

APIs

find('url1').words.keys();

lookup's People

Contributors

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