This repo will be for the 2nd Project of the DevOps GMCA Course.
I will be creating a random code generator, where parts of the code are generated and sent as a micro-serviced flask app. The front-end will be service_1 and services_2/_3/_4 will generate a part of the code and send it to service_1. There it will be pieced together and added to a database and displayed on the screen through the HTML file.
Trello was used to create an initial list plan of what I had to do. More tasks are added as the project progresses and it is an easy way to keep track of your tasks.
I have uploaded an image of the Trello board when I had started the project:
Below is the architecture of what my services will send:
Below is the architecture of how my services will work with requests and queries:
664f8200-7b32-11eb-875c-45953004d416.png)
Service 1 has three jobs:
Below are examples of the front end that is displayed with the generated values:
Example 1:
Example 2:
Service one has also been tested and the test coverage is shown below:
Service 2,3 and 4 will perform the same task: generating a code when requested and sending it to service 1.
one example of generating a random code is shown below:
def code_part_example():
# where the code is decided
code_part = ""
choice = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in range(4):
code_part += str(choice[randrange(len(choice))])
str(code_part)
return code_part
Below is the CI/CD pipeline that I am using:
As you can see by the trello board I ran out of time to complete the project.
The main issue was that on the weekend and on the last day I had other things going on that were conflicting with my time to work on the code. If I had That much time I believe I could have successfully deployed the application.
<#risk_assessment_1>
<#risk_assessment_2>
As you can see from a contrast in the risk assessments; I mainly ran out of time and had issues with coping under the stress of the environment as well as the time constraints.
This project was done in a GMCA DevOps Bootcamp and was taught by consultants at QA. Most of the work involved in this was taught at the academy virtually and were were provided resources to help us.
I would like to thank the instructors of the course for the help they have provided in order to be able to complete this course.