Getting started with RESTful APIs using the Flask microframework for Python

Getting started with RESTful APIs using the Flask microframework for Python In this tutorial we are going to learn how to create a simple REST API using Flask Python and SQL Alchemy. A good RESTful API structure imples the logical segmentation from the Models and the Data, but for this tutorial purpose we will create everything on the same file. One other thing that we will be using is a virtual environment because we can have a clean and isolated environment that doesn’t depend/share on other virtual environments' libraries and doesn’t access global installed libraries on your »

Nginx Configuration

We love Nginx, if only for it's small footprint. It became our HTTP server of choice, even for light CDN web apps or Wordpress and Ghost websites. As with every http server flavour, Nginx has its on set of quirks. After years of .htaccess hacking, we're sure you'll find some use in the latter tricks and modifications. Since you might want your local environment on the same http server as your webserver, we've created 2 articles, as much mutual aligned as possible. Nginx on OSX Nginx on Linux OSX Notes Set your custom local url It’s very simple to »

Nginx on OSX

As explained in our parent article, we love Nginx. In order to create similar working environments on both your local machine as your server(s), we've written 2 sibling articles as close aligned as possible. OSX comes with Apache pre-installed. Lovely. Now we need to ignore that. As with every http server flavour, Nginx has its on set of quirks. After years of .htaccess hacking, we're sure you'll find some use in the latter tricks and modifications. Setup For your local convenience If you don't have HomeBrew installed, go get it already: homebrew article. If you have, it doesn't hurt »

Set up your Local Battleground

There is no such thing as always online. As any seasoned developer will second, domesticated or not, you need a local environment to develop. The bigger and more versatile your involvement in team-based projects, the safer you'll feel with your own little corner where you can trail and error without hordes of angry Mongols on horses boo-ing you. With *nix as the dominant webserver flavouring, we're going to assume you own a Mac. An Ubuntu VM (set up) is highly advised if you are stuck with a Windows machine. Choose your pick, based on the projects you're planning to explore. »