Example implementation of using TimelineJS3 with Flask. Can be used as a base template to quickly create your own template. Uses TimelineJS3 and Flask to create and host an interactive timeline.
Install Python and Flask. I recommend using the Anaconda distribution, which has flask included. If you already have Python, use
pip install Flask
To start the application, open a shell and CD into the directory where you cloned this repository. Then start the application:
cd ~/timelinejs-with-flask
python server.py
In windows, running the application looks like this:
To view your application, browse to http://localhost:5000
Look up your IP address, and add the port number (5000). In windows, you can find your ip adress by typing ipconfig
in a cmd shell.
- Use /static/img to place your images.
- Use /static/data/events.json to specify your events.
- Use /templates/index.html to edit the page name.
See the TimelineJS3 documentation for more options. Have a look at the Flask Quickstart to learn more about flask.