Skip to content
Solution to #LinksSDGs challenge
Branch: V4
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This repo contains the modules requred to run a solution to the Unite Ideas challenge: #LinksSDGs See details of the challenge at:

See the live demo at:

To implement this solution:

  1. start a virtual Ubuntu server (14.04)

  2. Get setup script $ wget

  3. run it: $ python

  4. Get installation script $ wget

  5. Run it: python

  6. Bring the entire solution to your server: $ git clone

  7. Start solr: $ python linksSDGs/

  8. Install the Webserver, only the first time: $sudo apt-get install gunicorn
    $sudo pip install -U solrpy
    $sudo pip install Flask

  9. Start the webserver:
    $ cd linksSDGs/Webapp_v_2_4/
    $ nohup gunicorn -b index:app &

  10. #Your APP will be available at:
    from terminal: $ curl http://localhost:8080/

  11. #Your Apache Solr Server will be available at: from terminal: $ curl http://localhost:8081/solr

If both WebApp and Solr are working fine from your terminal, try from an outside web browser:

Webapp: from a remote web browser (this shuold fail because of your server's firewall): http://yourServerPublicIP:8080/
Solr: from a remote web browser (this shuold fail because of your server's firewall): http://yourServerPublicIP:8081/solr

Both of these shuld normally fail. This is because your cloud provider usually keeps servers closed from external acces by default. At this point, you need to configure your cloud servers "security rules" or "security groups" to open port 8080 to everyone.

Usually this is done by adding a Custom TCT rule which enables access to the port range 8080/8080 from originating IP addresses ""

  1. For additional security in your own box. Go back to the terminal and Enable the Ubuntu firewall to allow access only to the webapp (not solr). $ cd .. $ python

Test that you can still access the webapp, but not Solr.

----- You are done ------

For more instructions see the file within each module.

All original work is licenced GPL 3.0. But the project relies heavily on other tools, all of which are opensource tools under their respective license.

---- In case of troubel -----

Use this if the service is down, then test.

Use a terminal connection to your Server.

-Test the Solr server is running:
$ curl http://localhost:8081/solr

#Test the Web application is running:
$ curl http://localhost:8080/

If Solr down:
$ python linksSDGs/

If Webapp is down:
$ cd linksSDGs/Webapp_v_2_4/
$ nohup gunicorn -b index:app &

Deprecated code, don't use this anymore:

Enable a monitor script which will restart the webapp it it fails: $ nohup python linksSDGs/ &

You can’t perform that action at this time.