Building a Laravel 8 Application: Routes and Views

In this post, we start building a Laravel 8 Application just created. You can follow the tutorial Create a Laravel 8 application from scratch to install and create your first project and the initial application structure. However, this can be applied to a project created using the Laravel Sail tools or Composer.

The main areas to work at the start of the project are:

  • Understanding the project directory structure
  • Navigation paths, adding/modifying routes
  • Application screens, creating/modifying views
Continue reading “Building a Laravel 8 Application: Routes and Views”

Create a Laravel 8 application from scratch

In this tutorial, we will explore how to create a Laravel 8 application from scratch and then prepare your application for development. However, the overall process changed from the previous version (Laravel 7), improving the developer experience with a fresh set of tools. Now, the new Laravel 8 provides Sail, a built-in solution for running your Laravel project using Docker.

Continue reading “Create a Laravel 8 application from scratch”

How to explain Javascript .filter() .map() and .reduce() to SQL users

I found using .filter() .map() and .reduce() Array methods could help to reduce code complexity and simplify many typical array data processing tasks. Looking at http://kangax.github.io/compat-table/es5/#test-Array_methods, you can confirm these methods are compatible with almost any modern desktop/mobile browser.

A good approach to understand how to use .filter() .map() and .reduce() is to compare each one to SQL data operations in SELECT statements.

Continue reading “How to explain Javascript .filter() .map() and .reduce() to SQL users”

Google SEO Tools to improve your site rank

There are many useful Google SEO tools, created by Google, to improve your SEO and site rank. These free tools could help you improve your search position:

  • Webmaster Tools (Google Search Console)
  • Google Analytics
  • Keyword Planner
  • Google Page Speed
  • Structured Data tools
    • Markup Helper
    • Structured Data Testing

Continue reading “Google SEO Tools to improve your site rank”

Configure PHP and Laravel Framework

In this guide we configure PHP and Laravel Framework to build web applications and REST APIs. As a result, you can prepare the environment to start the development process in a Laravel Project.

Note: for the newest Laravel 8, you can follow the instructions in this new post: Create a Laravel 8 application from scratch

After this process, you will get installed the following components:

  • PHP (PHP 7 or newer)
  • MySQL/MariaDB server engine and client
  • PEAR (PHP repository of common reusable components)
  • Composer (PHP package and dependency manager)
  • XDebug (PHP debugger used by unit tests tools like PHPUnit)
  • Laravel command line tools (laravel and php artisan)

Continue reading “Configure PHP and Laravel Framework”

Statically typed Javascript : Why and How

In the last months I have found good experiences using Statically typed Javascript. For example, using React with Typescript. It helps a lot to build a robust Web development, with statically typed Javascript support, ready for a complex and enterprise-level projects.

TypeScript is maintained by Microsoft, but it’s not the only option for statically typed Javascript. Flow, from Facebook and Dart from Google are similar options among a long list of implementations.

Why so many “big companies” are doing really big efforts to introduce static typing in Javascript development in the last years?

Continue reading “Statically typed Javascript : Why and How”

Build a REST API with Node.js SQLite and Express JS

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 tests using 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
  • A SQLite database for application storage

Continue reading “Build a REST API with Node.js SQLite and Express JS”

Deploy your Applications in Heroku

In this post we will learn how to deploy your web applications in Heroku, for free. Heroku is a Cloud Platform-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 prototype of 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:

  1. Register in the Heroku platform
  2. Install the Heroku CLI
  3. Login locally to Heroku
  4. Create your application and store it in a Git repository
  5. Configure your application for Heroku deployment.
  6. Register your application in Heroku
  7. Associate your git repository with your Heroku app
  8. Push your application to the Heroku application master repository
  9. Access your application from https://your-app.herokuapp.com

Continue reading “Deploy your Applications in Heroku”