Team:Michigan Software/Design


Michigan Software 2015

Design

HTML, CSS, and Javascript were used to create the user interface for Protocat. The intent was to design the site in a way that makes it easy for users to create, find, and use any protocol on our database. We used Bootstrap for its HTML grid layout to format our pages.

We used the Django web framework designed for Python 3.4 to manage the inner workings of Protocat. Django is convenient because it is capable of useful features including managing administration, databases, authentication, and templating of data on HTML pages through a Model-View-Controller system. The Controller handles browser requests and responses, as well as database connections. The Model component is the Python code interacting with the databases. The View component is the user interface; the finished product that is Protocat.

Protocat uses two databases, one for protocols and one for users. We created a “class Protocol,” a model of a protocol, to be used in one of our databases. This class includes properties such as name, reagents, protocol ID, and steps. Django takes care of the necessary steps to aggregate the various protocols into a database. Whenever changes need to be made to our models, all we need to do is migrate the changes through Django and it will change our database accordingly. Django comes with its own user system, which was used instead of creating our own user model. New user information such as username, password, email, and real name are added to the user database. Likewise, when a protocol is uploaded, all those attributes are saved in the protocol database.