Tidied app.py so that it only contains controller logic. Added error handling for if number of entrants exceeds number of possible identifiers Updated test coverage to test for all identifiers, as well as error case
96 lines
2.6 KiB
Markdown
96 lines
2.6 KiB
Markdown
<!-- PROJECT LOGO -->
|
|
<br />
|
|
<p align="center">
|
|
<img src="logo.png" alt="Logo" width="80" height="80">
|
|
|
|
<h3 align="center">Wigan Homebrew Club Competition Entry</h3>
|
|
|
|
<p align="center">
|
|
A project to facilitate anonymous entry into Wigan HBC competitions!
|
|
<br />
|
|
<br />
|
|
<a href="https://wiganhomebrew.cusack.cloud/">View Demo</a>
|
|
·
|
|
<a href="https://git.cusack.cloud/acid/wiganhbc-competition/issues">Report Bug</a>
|
|
·
|
|
<a href="https://git.cusack.cloud/acid/wiganhbc-competition/issues">Request Feature</a>
|
|
</p>
|
|
</p>
|
|
|
|
<!-- TABLE OF CONTENTS -->
|
|
## Table of Contents
|
|
* [About the Project](#about-the-project)
|
|
* [Built With](#built-with)
|
|
* [Getting Started](#getting-started)
|
|
* [Prerequisites](#prerequisites)
|
|
* [Running The Project](#running-the-project)
|
|
* [Roadmap](#roadmap)
|
|
* [License](#license)
|
|
* [Contact](#contact)
|
|
|
|
<!-- ABOUT THE PROJECT -->
|
|
## About The Project
|
|
|
|

|
|
|
|
This project is to allow homebrew club members to be given an identifying number/letter to put on their bottles for competitions. The goal is to allow all members to take part with no invigilator/organiser required. It support around 100 entries (alphabetical identifiers are given first, then numerical)
|
|
|
|
### Built With
|
|
This project is built in python and deployed in docker.
|
|
* [Flask](http://flask.pocoo.org/)
|
|
* [Bootstrap](https://getbootstrap.com)
|
|
* [Docker](https://www.docker.com/)
|
|
|
|
|
|
|
|
<!-- GETTING STARTED -->
|
|
## Getting Started
|
|
|
|
### Prerequisites
|
|
|
|
For development you need to have python3 installed along with pip. You can then set up a virtualenv and install requirements
|
|
```sh
|
|
pip install -r requirements.txt
|
|
```
|
|
### Running the project
|
|
|
|
A sample Dockerfile is included. Please note that you must supply an HBC_DB_PATH environmental variable. Below is a sample docker compose that can be used after you clone this repo.
|
|
|
|
```yaml
|
|
version: '3'
|
|
|
|
services:
|
|
wiganhomebrew:
|
|
container_name: wiganhomebrew
|
|
build: <relative path to repo directory>
|
|
restart: always
|
|
environment:
|
|
- HBC_DB_PATH=/data
|
|
volumes:
|
|
- sqlite-database-volume:/data
|
|
ports:
|
|
- 5000:5000
|
|
|
|
volumes:
|
|
sqlite-database-volume:
|
|
```
|
|
|
|
|
|
<!-- ROADMAP -->
|
|
## Roadmap
|
|
|
|
See the [open issues](https://git.cusack.cloud/acid/wiganhbc-competition/issues) for a list of proposed features (and known issues).
|
|
|
|
|
|
<!-- LICENSE -->
|
|
## License
|
|
|
|
Distributed under the MIT License. See `LICENSE` for more information.
|
|
|
|
|
|
<!-- CONTACT -->
|
|
## Contact
|
|
|
|
Sean Cusack - seancusack@gmail.com
|
|
|
|
Project Link: [https://git.cusack.cloud/acid/wiganhbc-competition](https://git.cusack.cloud/acid/wiganhbc-competition) |