Giter VIP home page Giter VIP logo

cachirulovalleydirectory's Introduction

#CachiruloValley.com professional directory

screenshot

##Check it out!

directorio.cachirulovalley.com

This is professional directory created in express.js and redis. Once you login (linkedin auth), you can create your profile, tag your skills, and recommend other people.

REDIS DATABASE SCHEMA

<Project>:user:<id>  (object) => user object in json notation
<Project>:user:<id>:tags (set) => set of tags for particular user
<Project>:user:<id>:cats (set) => set of cat id's for particular user
<Project>:user:linked_id:<id> (int) => PK associated to linkedin id (for faster access)		

<Project>:cat:<id> (object) => category (id, name, descr)
<Project>:cats (set) => id's of categories in the database
<Project>:cat:<id_cat>:users (set) => id's of users associated to a certain category (for faster access)
<Project>:cats:count (int) => categories count (for assigning autoincremental PK)

<Project>:tags (set) => tag collection
<Project>:tags:cat<id_cat> (set) => tags for a certain category
<Project>:tag:<tag>:users (set) => id's of users associated to a certain tag

<Project>:votes:<id> (set) => set of votes for particular user (each item is the id of the user who voted)

<Project>:cat:<id_cat>:tag:<tag>:f:<0/1>:e:<0/1>, region (ordered set) => fast access to filter by region, cat, tag, freelance and entrepreneur settings.

The application has been successfully tested with more than 100K users.

##Installation

Watch the video (via codestre.am)

http://codestre.am/713d63501a1b2d9a923cbc05e

###Install redis database in your server first

http://redis.io/download

###Install dependencies with npm:

npm install -d

###Run redis

redis-server redis.conf

##Tests

There is a test infrastructure built for:

  • Http tests: test the application "from the outside", with basic http requests.
  • Module tests: test the library internals.
  • Zombie tests: test the application with zombie's headless browser (tests ajax, checks DOM, js events, etc).

Run tests with npm.

The npm script with launch a new instance of redis database for testing, a new instance of the app, will launch the tests and then shutdown both redis database and app test instances, so no data is touched from the development or production databases.

To run the tests:

npm test

##Scripts

###Rebuild database:

There is a script used by the test suite in order to create an initial amount of dummy data the tests can run against. The data is populated on the testing database. This database is created on the fly and and deleted after the tests passes.

You can also use the script manually to populate de production/development database:

node scripts/rebuild_database.js deletealldata

("deletealldata" is a confirmation word, so you don't delete the production database by accident)

TAGS (change log):

0.0.5

  • Added gzip compression using gzippo module.
  • Compress JS assets with uglifyjs.
  • Upgraded jquery.timeago to 0.11.1
  • Project cleaning and refactoring.
  • Filter tags by a those who contain a minimum of ocurrences (defined on config file).

0.0.4

  • Make recommendation default sorting method
  • User friendly urls for profile names.

0.0.3

0.0.2

  • Huge performance improvement, load tests (successful load testing with +100.000 users)
  • Sorting
  • Pagination
  • Added twitter recent timeline.
  • Added github own projects sorter by watchers.
  • Styling and other global improvements

0.0.1

  • Added tests (zombie.js based and pure http tests)
  • Added user recomendation feature
  • Improved style
  • Improvements overall
  • Initial work based on previous code : FreelanceDirectory-server + FreelanceDirectory-web

TODO

  • Static content compression/minification
  • Keyboard navigation
  • i18n
  • Improve recommendation icons and style.

##Contributions

##LICENSE

Copyright (c) 2011 Iván Loire Mallén - www.iloire.com (twitter @ivanloire)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cachirulovalleydirectory's People

Contributors

iloire avatar

Stargazers

Marc Heiligers avatar

Watchers

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