Posty

Wyświetlanie postów z październik, 2022

Laravel based app directory structure

Obraz
To start working with Laravel we first have to understand what a basic Laravel based app consists of. Analysis and understanding of all the files and folders provided for the base of app is crucial for successful development. It eases the whole process a lot and makes it more enjoyable as well. Below we are going to explore the most important elements of directory structure: Here is the Root Directory: .env file This file allows us to configurate all the environmental aspects of the application. In .env file we can among others: - Set stage of development (local or production) - Set MySql connection for our database - Choose app's environment such as server type and port - Set up mailing connection and options - Set up connection with AWS server   Storage Directory this folder consists of 3 other folders which are: app, framework and logs. - app directory is used to store any files generated by the application. It also contains a public folder which is used to store user-generated...

PHP Composer and Laravel installation

Obraz
Instalation and configuration of Composer and Laravel on AWS Ubuntu VM: 1. In this project we will be using Laravel 8 which needs PHP version 7.3 to work properly. Once we have PHP installed we can now install its dependency manager called Composer. This process is perfectly described here: https://getcomposer.org/download/ so by following those instructions we will set it up in no time. 2. When we are done with that and have our Composer installed we can now take care of Laravel installation. It can be done with line below: composer global require laravel/installer 3. Now we will quickly permanently add the location of the vendor directory to the path: sudo nano ~/.bash_profile Type this at the end of the document: export PATH="~/.config/composer/vendor/bin:$PATH"   4. Now we can create our new Laravel project and run it with artisan on a local server. laravel new blog cd blog composer install php artisan serve We are now ready to  start working on our app's content and...

Everything you need to know before starting the development

Obraz
 List and descriptions of concepts that are beneficial to understand before starting the development: Linux - very popular OS (Operating System).   Apache – the most popular web server on Linux systems.   PHP – an open-source server-side scripting language that can be embedded into HTML.   MySQL – an open-source relational database management system. It allows us to create and use databases. phpMyAdmin – a software tool that allows us to administrate MySQL over the web. AWS - Amazon Web Services provides on-demand cloud computing platforms and APIs to individuals and companies. These cloud computing web services provide distributed computing processing capacity and software tools via AWS server farms. Some of the most popular Amazon services are EC2, S3 and RDS. Amazon EC2 (Elastic Compute Cloud) - makes it easy for to obtain virtual servers, also known as compute instances in the cloud, quickly and inexpensively. With Amazon EC2 we pay only for what we u...