What are common and convenient ways for projects that are using jquery or bootstrap to install these dependencies?
I’m writing a web application that is using Django at a server side and jquery and bootstrap at a client side. The topic of automatically installing Python dependencies is quite well covered, there are at least two reasonable options (Pip and Buildout). But I can’t find any information how to best install the front end dependencies.
The ultimate goal is to configure development environment with just two commands:
1. git checkout
2. setup that downloads and install all dependencies: Python stuff + jquery + bootstrap.
Most front end JavaScript libraries should be included by reference in your HTML, so there is no need download/install it. If you plan to modify JavaScript libraries, you will have to host the modified code yourself.
So in your case you could use Google Libraries API to load jquery like so:
Most sites keep their customized Bootstrap assets in their own repository, and host them directly. Bootstrap customization is described at http://twitter.github.com/bootstrap/download.html. Bootstrap loading code should look something like this:
If you don’t want to host the bootstrap javascript, you could always link to the latest version directly: