Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/parente/bof
Web app to aid off-the-cuff planning of Birds of a Feather (BoF) sessions at a venue
https://github.com/parente/bof
Last synced: 1 day ago
JSON representation
Web app to aid off-the-cuff planning of Birds of a Feather (BoF) sessions at a venue
- Host: GitHub
- URL: https://github.com/parente/bof
- Owner: parente
- License: bsd-2-clause
- Created: 2016-08-01T00:22:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T05:11:22.000Z (over 8 years ago)
- Last Synced: 2024-11-05T11:08:34.242Z (about 2 months ago)
- Language: HTML
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BoF App
A web app to aid off-the-cuff planning of Birds of a Feather (BoF) sessions at a venue
## Run for Development
NOTE: Not using conda/conda-forge at the moment because of SSL verification problems when communicating with GitHub to fetch user data. (Bad certificates package?)
```
pip install -r requirements.txt
export GITHUB_CONSUMER_KEY='your app github key'
export GITHUB_CONSUMER_SECRET='your app github secret'
python -m bof.admin data examples
FLASK_APP=bof/__init__.py FLASK_DEBUG=1 flask run
```## Deploy to Cloud Foundry
Create a `dev-manifest.yml` and/or `prod-manifest.yml` that inherits from base-manifest.yml:
```
---
inherit: base-manifest.yml
applications:
- name: bof
host: bof
env:
GITHUB_CONSUMER_KEY: 'replace with GitHub OAuth client ID'
GITHUB_CONSUMER_SECRET: 'replace with GitHub OAuth secret'
SECRET_KEY: 'replace with a random string'
SQLALCHEMY_DATABASE_URI: 'postgresql+pg8000://username:password@host:port/database'
SQLALCHEMY_POOL_SIZE: 1 # per worker
```Push it.
```
cf push -f dev-manifest.yml
```For zero-downtime deploys, get https://github.com/contraband/autopilot, make sure you have twice the app allocated resources available, and then run:
```
cf zero-downtime-push bof -f dev-manifest.yml
```If the zero-downtime deploy goes bad, just use `cf delete` to remove the botched app and `cf rename` to rename the venerable instance back to the main instance.
## Administer the Database
Set `SQLALCHEMY_DATABASE_URI` in your environment. Then run:
```
python -m bof.admin --help
```