|
1 | | -# Microservices |
| 1 | +<p align="center"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></p> |
| 2 | + |
| 3 | +<p align="center"> |
| 4 | +<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a> |
| 5 | +<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a> |
| 6 | +<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a> |
| 7 | +<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a> |
| 8 | +</p> |
| 9 | + |
| 10 | +## About Laravel |
| 11 | + |
| 12 | +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: |
| 13 | + |
| 14 | +- [Simple, fast routing engine](https://laravel.com/docs/routing). |
| 15 | +- [Powerful dependency injection container](https://laravel.com/docs/container). |
| 16 | +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. |
| 17 | +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). |
| 18 | +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). |
| 19 | +- [Robust background job processing](https://laravel.com/docs/queues). |
| 20 | +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). |
| 21 | + |
| 22 | +Laravel is accessible, powerful, and provides tools required for large, robust applications. |
| 23 | + |
| 24 | +## Learning Laravel |
| 25 | + |
| 26 | +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. |
| 27 | + |
| 28 | +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. |
| 29 | + |
| 30 | +## Laravel Sponsors |
| 31 | + |
| 32 | +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). |
| 33 | + |
| 34 | +### Premium Partners |
| 35 | + |
| 36 | +- **[Vehikl](https://vehikl.com/)** |
| 37 | +- **[Tighten Co.](https://tighten.co)** |
| 38 | +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** |
| 39 | +- **[64 Robots](https://64robots.com)** |
| 40 | +- **[Cubet Techno Labs](https://cubettech.com)** |
| 41 | +- **[Cyber-Duck](https://cyber-duck.co.uk)** |
| 42 | +- **[Many](https://www.many.co.uk)** |
| 43 | +- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** |
| 44 | +- **[DevSquad](https://devsquad.com)** |
| 45 | + |
| 46 | +### Community Sponsors |
| 47 | + |
| 48 | +<a href="https://op.gg"><img src="http://opgg-static.akamaized.net/icon/t.rectangle.png" width="150"></a> |
| 49 | + |
| 50 | +- [UserInsights](https://userinsights.com) |
| 51 | +- [Fragrantica](https://www.fragrantica.com) |
| 52 | +- [SOFTonSOFA](https://softonsofa.com/) |
| 53 | +- [User10](https://user10.com) |
| 54 | +- [Soumettre.fr](https://soumettre.fr/) |
| 55 | +- [CodeBrisk](https://codebrisk.com) |
| 56 | +- [1Forge](https://1forge.com) |
| 57 | +- [TECPRESSO](https://tecpresso.co.jp/) |
| 58 | +- [Runtime Converter](http://runtimeconverter.com/) |
| 59 | +- [WebL'Agence](https://weblagence.com/) |
| 60 | +- [Invoice Ninja](https://www.invoiceninja.com) |
| 61 | +- [iMi digital](https://www.imi-digital.de/) |
| 62 | +- [Earthlink](https://www.earthlink.ro/) |
| 63 | +- [Steadfast Collective](https://steadfastcollective.com/) |
| 64 | +- [We Are The Robots Inc.](https://watr.mx/) |
| 65 | +- [Understand.io](https://www.understand.io/) |
| 66 | +- [Abdel Elrafa](https://abdelelrafa.com) |
| 67 | +- [Hyper Host](https://hyper.host) |
| 68 | +- [Appoly](https://www.appoly.co.uk) |
| 69 | +- [云软科技](http://www.yunruan.ltd/) |
2 | 70 |
|
3 | | -## Project Steps |
4 | | - |
5 | | -1. Created Dockerfile for php - this enables the install and enable of specific tools: vi, pdo, xdebug |
6 | | - |
7 | | -Note: This would require changes for deployment as Postgres saves credentials based on OS anyone who accesses the container is able to make changes, this would require additional authentication along with the removal of `bash` from the used images to prevent unwarranted access to the container. |
8 | | - |
9 | | -2. Created `docker-compose.yml` in this file the containers are set up (see README.md in root). |
10 | | - |
11 | | -This is conducted to ensure the environment is reproducible. In this example I modified the LAMP stack I usually use to instead utilise postgres over MySQL, along with the addition of containers for additional technologies: RabbitMQ. |
12 | | - |
13 | | -3. Created docker volume - this is a workaround, usually I would add a volume in the compose file linked to a directory within the root, this folder would be ignored by .gitignore, however, postgres does not allow for this, instead, the data is persisted in a volume and the database populated through a .sql file. |
14 | | - |
15 | | -4. Created SQL for creation of database, and data population. |
16 | | - |
17 | | -5. Created Models for the database tables |
18 | | - |
19 | | -6. Create Controllers for each model. |
20 | | - |
21 | | -Utilising object oriented programming each of these is done through a class, due to some issues, mentioned below, this is the further milestone in a 2 hour period. |
22 | | - |
23 | | -## Occuring Issues |
24 | | - |
25 | | -1. Postgres does not allow dir/data:db/data - workaround to use a docker volume instead. |
26 | | - |
27 | | -2. Postgres security concern - this would have to be rectified in a deployment image to ensure only warranted access is permitted due to postgres policies. |
28 | | - |
29 | | -3. RabbitMQ starts without enabled plugins - as a workaround a enabled file was created and added via the volume: `./rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins` to ensure the necessary plugins were enabled at startup. |
30 | | - |
31 | | -## Next |
32 | | -In continuation of this project I would first set up controllers for each model, furthermore I would first focus on developign the foreign service to send data to the microservice. |
33 | | - |
34 | | -From here the microservice should then check the received payload type, this should then route the informaiton to the correct microservices only. Using RabbitMQ this service would be the producer, the other services would act as consumers picking up the information from RabbitMQ based on the provided ruleset. |
35 | | - |
36 | | -More experience is required utilising RabbitMQ and Lumen before stepping to the next section. As such, I will continue working on these skills as I have not experienced these technologies before now. |
37 | | - |
38 | | -# Lumen PHP Framework |
39 | | - |
40 | | -[](https://travis-ci.org/laravel/lumen-framework) |
41 | | -[](https://packagist.org/packages/laravel/lumen-framework) |
42 | | -[](https://packagist.org/packages/laravel/lumen-framework) |
43 | | -[](https://packagist.org/packages/laravel/lumen-framework) |
44 | | - |
45 | | -Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching. |
46 | | - |
47 | | -## Official Documentation |
| 71 | +## Contributing |
48 | 72 |
|
49 | | -Documentation for the framework can be found on the [Lumen website](https://lumen.laravel.com/docs). |
| 73 | +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). |
50 | 74 |
|
51 | | -## Contributing |
| 75 | +## Code of Conduct |
52 | 76 |
|
53 | | -Thank you for considering contributing to Lumen! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). |
| 77 | +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). |
54 | 78 |
|
55 | 79 | ## Security Vulnerabilities |
56 | 80 |
|
57 | | -If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed. |
| 81 | +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. |
58 | 82 |
|
59 | 83 | ## License |
60 | 84 |
|
61 | | -The Lumen framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). |
| 85 | +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). |
0 commit comments