Code Monkey home page Code Monkey logo

syncano.com's Introduction

syncano.com

Slack CircleCI

Syncano.com Website

Installation

Project requires node 6.2.1 and npm 3.9.3. The best way to manage node versions I found is n.

Installation.

$ sudo npm install -g n
$ n 6.2.1

Type n to prompt selection of an installed node. Use the up / down arrow to navigate, and press enter or the right arrow to select, or ^C to cancel:

$ n

ο 6.2.1
  4.4.3

How To Run

To run the website use the following command:

$ npm start

If you want to see Twitter slider, you need to provide your Twitter config keys in config/development/index.js. If you modify this file, remember to ignore your changes with a command $ git update-index --assume-unchanged config/development/index.js;

How To Build

To build the website use the following command:

$ npm run build

It will create a public directory with all static files inside. Also when building, all files from static directory are copied to public folder.

E2E Testing

We are using Nightwatch.js for e2e testing. Nightwatch.js requires few binary files which can be installed via proper NPM command:

$ npm run e2e-setup

You'll also need to configure env variables for the tests to work locally:

$ export NIGHTWATCH_EMAIL="xx"
$ export NIGHTWATCH_PASSWORD="xx"

If you are ready just run dev server:

$ npm start

and start testing using two browsers in parallel mode:

$ npm run e2e-local

or one by one:

$ npm run e2e-chrome
$ npm run e2e-firefox

If part of the tests fail for some reason, you can temporarily disable them by --skiptags argument. So if, for instance signup tests fail, you can modify package.json e2e line, so that it looks like this:

"e2e-local": "nightwatch -e chrome,firefox --suiteRetries 1 --skiptags signup",

Tests will continue to run but the classes tests will be skipped. Refer to the test files for the appropriate tag name.

syncano.com's People

Contributors

wpasinski avatar patrykkopycinski avatar greenkeeper[bot] avatar gh3r avatar mariuszwisniewski avatar devintyler avatar flixow avatar dancio avatar

Watchers

James Cloos 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.