Fleshing out the templates and setting up routes