Skip to content

Routes Laravel Project for the final level at Vratsa Software Academy.

License

Notifications You must be signed in to change notification settings

LaravelProjectTeam/routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Routes Project

Project, which by given two endpoints, A and B, returns the shortest path between them (composed of multiple direct roads), the minutes needed to travel that road, and the information about the filling stations, fuels along the way.

See the Laravel Readme in /docs/README.md

Requirements

  • XAMPP - PHP version 8, MariaDB - 10.4.x, Apache - 2.4.x, composer 2.1.x

How To Run

  • Clone the project and cd into its directory.
  • From .env.example create .env.
  • Start MySQL/MariaDB server and create the routes-database (should be with the same name as the DB_DATABASE environment variable - in .env).
  • Run the following commands php artisan key:generate, composer install, npm install.
  • Migrate the database php artisan migrate with and seed with php artisan db:seed
  • Start the application with php artisan serve.

Deployment Strategy

Deployment is done with Docker and Heroku.

The Dockerfile in project root and /scripts/deployment-script.sh are used for that matter.

SendGrid

The application has email sending functionality (in the Contact Us page - /contacts/create).

To use it, you should create a Single Sender, then obtain an API Key from https://sendgrid.com and then save it in the .env configuration file, alongside other needed information.

# example SendGrid configuration
SENDGRID_EMAIL=<your.email@example.com>
SENDGRID_NAME=<your.name>
SENDGRID_API_KEY=<your.sendgrid.api.key>

Gmail Setup

Besides SendGrid, we use Gmail to send the tokens for password resetting.

You will need to configure the following .env variables and enable less secure applications (https://myaccount.google.com/security) for that functionality to work.

Feel free to use your own mail provider and its specific settings.

MAIL_MAILER=<smtp||your.setting.here>
MAIL_HOST=<smtp.gmail.com||your.setting.here>
MAIL_PORT=<465||your.setting.here>
MAIL_USERNAME=<your.sender_username>
MAIL_PASSWORD=<your.sender_password>
MAIL_ENCRYPTION=<ssl||your.setting.here>
MAIL_FROM_ADDRESS=<your.sender_email>
MAIL_FROM_NAME="${APP_NAME}"

Acknowledgements

The resources, frameworks and platforms used for creating/distributing/testing the application

Art
Blog Posts

https://dev.to/veevidify/docker-compose-up-your-entire-laravel-apache-mysql-development-environment-45ea

https://www.digitalocean.com/community/tutorials/how-to-set-up-laravel-nginx-and-mysql-with-docker-compose

https://www.cloudsigma.com/deploying-laravel-nginx-and-mysql-with-docker-compose/

https://maruan.medium.com/how-to-install-and-set-up-laravel-8-with-docker-compose-on-ubuntu-20-04-58149fed3e2e

https://shouts.dev/dockerize-a-laravel-app-with-apache-mariadb

https://webomnizz.com/containerize-your-laravel-application-with-docker-compose/

https://stackoverflow.com/questions/18584598/how-to-persist-a-graph-data-structure-in-a-relational-database/20304574

... and many others

About

Routes Laravel Project for the final level at Vratsa Software Academy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages