Microservices with Docker, Flask, and React

3,035 928 44MB

English Pages 577

Report DMCA / Copyright

DOWNLOAD FILE

Microservices with Docker, Flask, and React

Table of contents :
Introduction......Page 5
Changelog......Page 6
Part 1......Page 8
Microservices......Page 11
App Overview......Page 14
Getting Started......Page 16
Docker Config......Page 20
Postgres Setup......Page 24
Test Setup......Page 30
Flask Blueprints......Page 34
RESTful Routes......Page 38
Deployment......Page 46
Jinja Templates......Page 51
Workflow......Page 56
Structure......Page 60
Part 2......Page 61
Code Coverage and Quality......Page 64
Continuous Integration......Page 67
Flask Debug Toolbar......Page 69
React Setup......Page 74
Testing React......Page 86
React Forms......Page 93
React and Docker......Page 103
Next Steps......Page 112
Structure......Page 113
Part 3......Page 115
Flask Migrate......Page 117
Flask Bcrypt......Page 125
JWT Setup......Page 134
Auth Routes......Page 140
React Router......Page 152
React Bootstrap......Page 159
React Authentication - part 1......Page 170
Mocking User Interaction......Page 180
React Authentication - part 2......Page 187
Authorization......Page 192
Update Components......Page 205
Update Docker......Page 213
Structure......Page 216
Part 4......Page 218
End-to-End Test Setup......Page 220
End-to-End Test Specs......Page 226
React Component Refactor......Page 237
React Form Validation......Page 247
React Flash Messaging......Page 261
Swagger Setup......Page 276
Staging Environment......Page 291
Production Environment......Page 298
Workflow......Page 303
Structure......Page 309
Part 5......Page 312
Container Orchestration......Page 314
IAM......Page 316
Elastic Container Registry......Page 318
Elastic Load Balancer......Page 328
Elastic Container Service......Page 336
ECS Staging......Page 351
Setting up RDS......Page 362
ECS Production Setup......Page 365
ECS Production Automation......Page 376
Workflow......Page 385
Structure......Page 390
Part 6......Page 393
React Refactor......Page 395
React Ace Code Editor......Page 407
Exercises Service Setup......Page 419
Exercises Database......Page 423
Exercises API......Page 433
Code Evaluation with AWS Lambda......Page 440
Update Exercises Component......Page 452
ECS Staging......Page 466
ECS Production......Page 478
Scaling......Page 491
Workflow......Page 495
Structure......Page 500
Part 7......Page 504
Lambda Refactor......Page 507
Exercise Component......Page 513
AJAX Refactor......Page 519
Type Checking......Page 526
Scores Service......Page 533
Exercises Component Refactor......Page 540
Updated Users List......Page 551
ECS Staging Update......Page 559
ECS Prod Update......Page 570
Next Steps......Page 572
Structure......Page 573

Polecaj historie