In this guide you can build a REST API with Node.js SQLite and Express.js. Then, in a next part, we will be building automated Unit testsusing Mocha and Chai, ready for a Test-Driven Development (TDD).
The main components of this REST service are:
A Node.js base project, created as a NPM module
An Express.js web server to manage the API endpoints, requests and responses
In this post we will learn how to deploy your web applications in Heroku, for free. Heroku is a CloudPlatform-as-a-Service (PAAS). This company provides the base platform server, network resources and endpoints to publish your applications. However, you need to provide the application code and the rest is created automatically for you.
Sometimes, we need to test or showcase a quick prototypeof a cloud based web application, REST API backend , or a static web application client. Heroku is a good solution to quickly host application at no cost. For example, they support the most popular languages and frameworks like Node.js, Ruby, Python, Java, PHP, Go, Scala, Clojure.
The general steps to deploy your application are:
Register in the Heroku platform
Install the Heroku CLI
Login locally to Heroku
Create your application and store it in a Git repository
Configure your application for Heroku deployment.
Register your application in Heroku
Associate your git repository with your Heroku app
Push your application to the Heroku application master repository
Access your application from https://your-app.herokuapp.com
In this post we will Create Web Applications using Python and Django.
When it comes to web development back-ends, there are many alternatives, from PHP, Java and C# to GoLang and Ruby. Python also has many options to implement a powerful web application service. One of the most used web frameworks is Django.
Django provides a full featured web development framework, and automated tools for a straightforward development. In this post we create a full featured basic web applications using Python and Django, with the most common features for any web application:
Install Python and Django
Create the base Django Web application project
Create an application inside the Django project.
Create the main database and tables for administration
Run the web application locally
Then, in the next posts we will cover additional topics: