Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shogun-toolbox/shogun-web2
https://github.com/shogun-toolbox/shogun-web2
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shogun-toolbox/shogun-web2
- Owner: shogun-toolbox
- Created: 2014-09-28T17:11:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T22:12:08.000Z (almost 4 years ago)
- Last Synced: 2024-03-26T08:13:49.562Z (9 months ago)
- Language: HTML
- Size: 8.84 MB
- Stars: 3
- Watchers: 9
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Shogun-Web2
===========
Re-write and re-design of the Shogun websiteOverview
--------
Shogun-Web2 is written in python using [Flask](http://flask.pocoo.org/). The application has no database and instead pulls most of its data from other locations via APIs.[Twitter Bootstrap](http://getbootstrap.com/) is used for the frontend framework along with the [Stanley Theme](http://www.blacktie.co/2014/01/stanley-freelancer-theme/)
Details
-------
* Latest News section pulls from our Twitter feed using the Twitter API* Recent Activity shows the most recent commits from Github using their API
* The main showcase reel at the top and the multi carousel of notebooks at the bottom fetches notebooks and demos from directories on the production server. Several notebooks are included in this repo and the site will use them when running it locally.
* The site features a link to the latest Shogun docs generated by doxygen
* IRC logs are recorded by an irssi bot on our channel running on the same server as the website. A cron job runs every 17 minutes copying the latest irc logs into HTML (using [logs2html](https://pypi.python.org/pypi/irclog2html) for the site
* The blog is a combination of several RSS feeds of interest and is fetched using the [Google Feeds Javascript API](https://developers.google.com/feed/). The combination feed itself is generated by another Flask application running on Heroku
Developing
----------
To run the app locally you can either run `./script/server.sh` or use the Heroku toolbelt manual and run `foreman start`. Both of these approaches will export the required environment variables before starting the main program. In order to run the app locally with full functionality you will need a copy of the credentials in the `.env` file. Message someone to get these credentials securely.### Embedding markdown files
To embed a markdown file from the `docs submodule` (see [shogun-toolbox/docs](https://github.com/shogun-toolbox/docs)).
_Prerequisites:_
* `DOCS_SUBMODULE_DIR` const in `shogun_web.py` defines the relative path to app's root folder
* Fetch the docs submodule into the `docs` folder in the rootCreate a `
` in the template file (e.g. `templates/install.html`) based on the following template:```
```This example also shows how to pass a paragraph style (here: text-align).
For more detail see `static/javascripts/markdown.js`.