Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

timvink/timelinejs-with-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timelinejs-with-flask

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.

What does it look like?

alt text

Installation

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:

alt text

To view your application, browse to http://localhost:5000

Sharing your application

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.

How to extend

  • 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.

About

Example implementation of using TimelineJS3 with Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published