| Tags | docker mongodb tdd |
| Hard Prerequisites | |
| IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
|
Create a docker composition that will run mongodb. You will be connecting to this container while developing, be sure to commit your composition to your repo.
Also: DO NOT hardcode your connection configuration into your Python code. Use environmental variables. For example: MONGO_HOST = os.getenv("MONGO_HOST","localhost"). Make sure you understand why this is a good idea.
You are required to create a back-end service that will help capture basic information about prospective students who come to inquire here at Umuzi.
Create a single index script with the following functions:
create_visitor. This should save the Visitor into the databaselist_visitors This should return an array of all the visitor names and idsdelete_visitorupdate_visitorvisitor_details: Given a visitor’s id, return all information about that visitor.delete_allYou will be expected to properly test your code. You can use whatever testing framework you want.