This template can be used as a starting point for developing your own application during the hackathon. The template is a Flask project - you can find a quick tutorial about Flask and its best practices here.
# To install/update the project's dependencies
$> pip install -r requirements.txt
# To start the server
$> python -m flask run
We've provided you with some starter boilerplate code that should enable your team to quickly prototype your application.
The entrypoint for your flask application is in the app.py
module. The flask run
command is set up to automatically find and run the flask application defined in this module. You can add more modules to add additional functionality as your project needs it (like the chemistry.py
module in the demo).
We've included a base Jinja template that we recommend extending in any of your own templates (learn more about extending templates here):
<!-- templates/my-template.html -->
{% extends "base.html" %}
{% block content %}
<p>
The HTML markup for your page should be included in the 'content' block
</p>
{% endblock %}
{% block styles %}
<style>
// Any custom CSS you may need to write should be included in a style tag within the 'styles' block
</style>
{% endblock %}
{% block scripts %}
<script>
// Any JavaScript you write should be included in the 'scripts' block
</script>
{% endblock %}
The base template includes Bootstrap, a frontend toolkit, to allow you to quickly create polished UI elements. You can learn more about Bootstrap here. (NOTE: The base template includes a maximal bundle of Bootstrap utilities that includes all necessary modules for supporting advanced features like tooltips and Bootstrap icons)