As announced some days ago in this tutorial we will see how to build a chat application using AngularJS as frontend and Loopback for backend. A demo can be found here. The communications from AngularJS to the backend will be made via REST API, meanwhile the real time messaging will be handled with Socket.io. The chat will be available only for registered users so we need to setup the authentication process in both AngularJS and in Loopback. A user, once logged in, can join an already created room or can create new rooms as he like.
In this part of the tutorial series we will see how to create a page where, after the reservation has been made, the customer can pay it. Laravel itself come with a module to directly integrate with Stripe, it’s name is Cashier. Stripe is an online credit card payment system where, after a simple registration, you can start receiving payment via credit card using some exposed API and pay a little commission to it.
In the first two parts of this tutorial we created the backend of the application where the hotel owner can create room types and assign it a price for a certain dates. Now we need a final user interface where the customers can search a room and check for availability and finally book it.
In the first part of this tutorial series we created a basic Laravel application with all the data model needed for the application and a basic first controller to insert new room type. As we said at begin the frontend of the booking engine will be an AngulaJS single page application divided in two section, one for the final user and another for the hotel administration.
This tutorial is the first of a serie where we explain how to create an hotel booking system from scratch using Laravel 5.1 and AngularJS. In the booking engine we will use AngularJS to create a single page application, the front end, where the final user can make reservations and the hotel owner can manage rooms, price and reservations. On the backend side we will use Laravel to create all the needed REST API to serve the application.