Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Thursday, May 29, 2014

Migration tools for NodeJS

You can't find there any brilliant solution as django-south. Anyway, it's hard without them. So there is some please use it at your own risk.

Node-migrate

author: TJ Holowaychuk

https://github.com/visionmedia/node-migrate

It has some bugs and lack of some useful features. On other hand there a lot of pull request but seems that TJ doesn't has abandoned it.

$ npm install migrate

features

up, down, create

Node-db-migrate

https://github.com/kunklejr/node-db-migrate

.... Still don't have experience with it ...

$ npm install db-migrate

features

up, down, create,...

East

https://github.com/okv/east/

Author is Oleg Korobenko. Has adapters to support MongoDB and Sqlite.

$ npm install east -g

features

up, down, create, verbose, db-adapter, fallback on timeout, config file, list of migrations.

Sunday, April 20, 2014

AngularJS Tips / Progress bar on route change

If you need an effect of progressbar-like between different states of an application. Here is quick and dirty solution.

Dependencies

  • ui-router - of course you can use ngRoute, but I don't recommend so.
  • ngprogress-lite github official page - to get filling how it's works follow to the official page and look on the top of the page;

Ideal

Use something like that between states:

$rootScope.$on('$stateChangeStart', function(){
  ngProgressLite. start ();
});

$rootScope.$on('$stateChangeSuccess', function(){
  ngProgressLite.done();
});

$rootScope.$on('$stateChangeError',  function(){
  ngProgressLite.done();
});

and fetch all needed dependencies in the resolve section of the states.

Good luck.

Follow the blog to get quick tips for software development.

Friday, May 31, 2013

Creation of documentation for JavaScript library


If you are developing open source library one of most important things is documentation and it's great if it has good design. But anyway, it's better to have a badly designed documentation than none at all.
So here i'll describe of some tectonics (jsdoc, unittests, grunt) to apply documentation for your opensource project.

Friday, May 17, 2013

Parallax / On Darlingjs


Here is short article about creating parallax effect upon game engine darlingjs

What is the parallax?

In our case parallax is an effect of perception that takes place when 3D environment is translated into 2D display surface. For example we have an observer with 'view port' (2D) and some objects on different distance from the observer in 3D. If the observer takes left or right step than visually objects located nearby will move faster than objects located further away from the observer. If an object is placed very far from the observer for a short period of time it will look as if it doesn't move at all, like the sun for the observer on the Earth.

Friday, May 10, 2013

Cyclic background / On Darlingjs


Goal

One of the issue i got during developing of the 2D game Red Cabriolet was creation of landscape with taste of 3D environment. In other words:
  • the landscape mast be unlimited;
  • placed behind the main stage;
  • and gives feeling of 3D space in 2D;

Sunday, April 21, 2013

Anons of DarlingJS and Red Cabriolet

darlingjs

I'm developing flexible javascript game engine darling.js and also the game Red Cabriolet as example of possibilities of engine. So any comments and feedback is welcome.

Friday, March 1, 2013

Best of the 7th week (EN)


Don't forget it's is the 1st day of the spring so everything became greener and hotter. It's good time for breakthrough events and launching new applications. But in last week of the winter I have also find many interesting stuff: Time-consuming html5 game BomberMine, Graphics and diagram by D3, some math and NY gamedev event. So let's go:

Saturday, January 26, 2013

Friday, January 18, 2013