Creating a new project is not always obvious when coming to a new technology. Python has virtualenv and pip freeze and requirements to manage dependencies and standalone projects. But how to deal with it in NodeJS? NPM comes to help us out with a bunch of automation tools.
Socketio brings with HTML5 websockets a real time full-duplex connection. We'll see here how we can use Python on the server to manage a real-time app.
We'll use Flask as it will be very basic, Gevent and SocketIO for persistant connecion and Google Maps.
The application in this example will display on a map everyone connecting live.
Easy way to install python3 and then libraries through pip aside another version of python on a Mac. Allows you to work on a different version WITHOUT virtualenvwrapper ! The will require homebrew.
Sometimes you have no choice but to use the old buddy SVN. That's ok, git can deal with it ! This article is about the everyday basics of using git+svn.
Having multiple environments requires multiple configurations : local for development, staging for pre-production and production. Each share some settings and override others. Here's a way to manage it with real ease and never read again those "if DEBUG is True:" or "if ENV is 'local'"