Giter Club home page Giter Club logo

sockerr's Introduction

Sockerr - A Twitter clone (version 2);

Introduction

Twitter clone, made in order to try out some of the feature testing tools such as Casper and Selenium. Also to test socket.io and other misc stuff.

Languages/Platforms/Tools

  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • Casper
  • Selenium WebDriver
  • Bcrypt
  • Mocha
  • Socket.io
  • jQuery

Learning Outcomes

Refresher project - Casper didn't turn out to be good with SPAs. Prefer Selenium. Ignore the lack of structure/modularisation of app.

To-do List

  • Add equivalent functionality that I have in the original version (followers, private messages etc.)
  • More use of Jquery animations for cool effects
  • Improve the CSS and HTML (Current design is rather simple - using bootstrap).
  • Add hashtags and other Twitter related content
  • Find better testing tools for feature testing AJAX and JQuery.

Instructions

The live version of the site will be available shortly.

Clone the repository:

$ git clone [email protected]:snozza/sockerr.git

Change into the directory and npm install the modules:

$ cd sockerr
$ npm install

Setup:

Ensure that mocha is installed globally:

$ npm install mocha -g

Download the chromedriver executable from http://chromedriver.storage.googleapis.com/index.html and place it on your path (e.g. /usr/local/bin).
Futher information can be found at https://code.google.com/p/selenium/wiki/ChromeDriver

Download the Selenium stand-alone server from http://www.seleniumhq.org/download
then in a separate terminal run:

$ java -jar /pathtofile/selenium-server-standalone-2.44.0.jar

Ensure that MongoDB is installed and run a mongodb server daemon in a seperate terminal

$ mongod

Run the tests:

Please use the following test runner (includes setup and teardown of server and database)

$ node mocha_runner.js

Start the node server and visit http://localhost:3000/

$ node app.js

sockerr's People

Contributors

snozza avatar tansaku avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tansaku asnead

sockerr's Issues

Unable to run mocha runner

โ†’ node mocha_runner.js
express-session deprecated undefined resave option; provide resave option app.js:30:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option app.js:30:9
2015-01-29T16:01:44.979+0000 [initandlisten] connection accepted from 127.0.0.1:61596 #7 (1 connection now open)

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1011:11)
    at Process.ChildProcess._handle.onexit (child_process.js:802:34)
2015-01-29T16:01:44.987+0000 [conn7] end connection 127.0.0.1:61596 (0 connections now open)

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.