No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 99%
  • Dockerfile 1%
Find a file
Chris Pressland 2f091d5fc1
Some checks failed
build / build (push) Has been cancelled
build / release (production) (push) Has been cancelled
build / release (staging) (push) Has been cancelled
remove old readme
2024-02-22 11:11:58 +00:00
.github DevOpsify Project 2024-02-22 11:04:54 +00:00
snowboard DevOpsify Project 2024-02-22 11:04:54 +00:00
tests DevOpsify Project 2024-02-22 11:04:54 +00:00
.gitignore DevOpsify Project 2024-02-22 11:04:54 +00:00
Dockerfile DevOpsify Project 2024-02-22 11:04:54 +00:00
poetry.lock DevOpsify Project 2024-02-22 11:04:54 +00:00
pyproject.toml DevOpsify Project 2024-02-22 11:04:54 +00:00
README.md Rename README 2024-02-22 11:10:28 +00:00

Welcome to Snowboard

Welcome to Project Snowboard

We will be using a Dash by Plotly Dashboard to replace Tableau as our visualisation tool.

Further documentation on the structure and architecture will be available on confluence in due time.

== THIS IS CURRENTLY A POC AND SHOULD NOT BE USED FOR EXTERNAL REPORTING ==

Installation

Firstly, ensure that Python 3.11 and Poetry are installed on your system:

$ brew install python@3.11 poetry

Clone the repository:

$ git clone git@github.com:binkhq/snowboard.git

Set the keyvault_url with the desired Snowflake credenitals in your .env file, example:

KEYVAULT_URL=https://uksouth-staging-232w.vault.azure.net/

Setup a virtual environment via Poetry to begin development.

$ poetry install
$ poetry shell

Usage

To serve the code locally, use the below.

snowboard --debug

Then proceed to the route http://127.0.0.1:6502/ to load up the dash by plotly dashboard.

This will update when we add additional routes and a landing page to navigate routes.

Testing

To test the repository, we are using a combination of pytest and dash.testing toolkits

Pytest will be used to test python functions as part of our unit testing approach

Dash.testing will be used to test rendering and callback responses.

Both testing suites can be run via the below command:

pytest

Contributing

Please ensure that you follow the below steps to contribute to this repository.

If you have installed new dependancies to the venv, then run the below command:

poetry add {pagckage name} # to add new package

This will allow other developers to install these dependancies on their system as well as update production.

Next, when creating a new .py file or fixing an existing file, please create a branch, and open a pull request to add this to the master branch.

Ensure all code is documented and tested as per the above testing documentation, and new unit tests are implemented for new functions.