Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
/ BeerClub Public archive

A web application to keep track of the beer accounts for registered members.

Notifications You must be signed in to change notification settings

pekrau/BeerClub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

BeerClub

A web application to keep track of the beer accounts for registered members.

Development

The contribution model is to fork the main repository and submit pull requests.

To test changes, please deploy the website locally.

Local Deployment

It's recommended to use conda to keep the installation environment clean.

First, create a new environment and install the dependencies:

conda create --name BeerClub --yes python=3.6.8
conda activate BeerClub
pip install -r requirements.txt

Next, make a new settings.json file based on the template:

cd beerclub
cp template_settings.json settings.json

The BeerClub site uses CouchDB to store data. You can install this locally if you want, or use Docker:

docker run -p 5984:5984 -d couchdb

Once the docker image is running, go to http://127.0.0.1:5984/_utils/#/setup and add a user with a password. Then create a new database. The template_settings.json file contains the following defaults (obviously for local testing only!):

"DATABASE_ACCOUNT": "admin",
"DATABASE_PASSWORD": "admin",
"DATABASE_SERVER": "http://0.0.0.0:5984/",
"DATABASE_NAME": "beerclub",
"DATABASE_PASSWORD": "beerclub",

The BeerClub site needs to have it's directory added to the PYTHONPATH to work, so from the repository root directory run the following:

export PYTHONPATH=$PWD:$PYTHONPATH

Finally, run the tornado web server:

python app_beerclub.py

The BeerClub website should now be running at http://localhost:8888/

About

A web application to keep track of the beer accounts for registered members.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages