https://github.com/mtchavez/whitepy
Flask microblog example using WhiteDB as an in memory stat layer
https://github.com/mtchavez/whitepy
flask python whitedb
Last synced: about 2 months ago
JSON representation
Flask microblog example using WhiteDB as an in memory stat layer
- Host: GitHub
- URL: https://github.com/mtchavez/whitepy
- Owner: mtchavez
- Created: 2013-10-27T15:56:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-28T03:13:32.000Z (over 11 years ago)
- Last Synced: 2025-02-04T15:32:40.950Z (4 months ago)
- Topics: flask, python, whitedb
- Language: Ruby
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whitepy
[Flask](http://flask.pocoo.org) microblog example using [WhiteDB](http://whitedb.org) as an in memory stat layer.
## Requirements
* [Vagrant](http://vagrantup.com)
* [Ansible](http://ansibleworks.com)
* [VMware Fusion](http://www.vmware.com/products/fusion/)
* Or you can change the `Vagrantfile` to use `VirtualBox`## Setup
1. Start up VM `vagrant up`
2. Provision your server `vagrant provision`
3. SSH into server `vagrant ssh`
4. Make sure requirements are installed.
* `cd /srv/app`
* `sudo pip install -r requirements.txt`
5. Run server `sudo python main.py`
6. Now access app at `http://192.168.33.10:5000`## Create entries
* Use login of `admin` with password `default`
* Add several entries## Metrics captured in WhiteDB
* `views` - Number of views for an entry
* `upvotes` - Upvotes for an entry
* `downvotes` - Downvotes for an entry