Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

communitiesuk/funding-service-design-round-store

Repository files navigation

funding-service-design-round-store

made-with-python Code style : black

Repo for the funding service design funding rounds store.

Built with Flask.

Prerequisites

  • python ^= 3.10

Getting started

Installation

Clone the repository

Create a Virtual environment

python3 -m venv .venv

Enter the virtual environment

...either macOS using bash:

source .venv/bin/activate

...or if on Windows using Command Prompt:

.venv\Scripts\activate.bat

Install dependencies

From the top-level directory enter the command to install pip and the dependencies of the project

python3 -m pip install --upgrade pip && pip install -r requirements.txt

How to use

Enter the virtual environment as described above, then:

flask run

Pipelines

These are the current pipelines running on the repo:

  • Deploy to Gov PaaS - This is a simple pipeline to demonstrate capabilities. Builds, tests and deploys a simple python application to the PaaS for evaluation in Dev and Test Only.

Testing

Unit

To run all tests in a development environment run:

pytest

Extras

This repo comes with a .pre-commit-config.yaml, if you wish to use this do the following while in your virtual enviroment:

pip install pre-commit black

pre-commit install

Once the above is done you will have autoformatting and pep8 compliance built into your workflow. You will be notified of any pep8 errors during commits.

In deploy.yml, there are three environment variables called users, spawn-rate and run-time. These are used to override the locust config if the performance tests need to run with different configs for round store.

About

funding-service-design-round-store

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •