| Hard Prerequisites |
|
Create a docker composition which 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 valiables. Eg: 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 visitordelete_allYou will be expected to properly test your code. You can use whatever testing framework you want.