|
| 1 | +[](../LICENSE) |
| 2 | +[](https://sonarcloud.io/code?id=bcgov_sbc-pay&selected=bcgov_sbc-pay%3Abcol-api) |
| 3 | +[](https://codecov.io/gh/bcgov/sbc-pay) |
1 | 4 |
|
2 |
| -[](LICENSE) |
| 5 | +# BCOL API |
3 | 6 |
|
4 |
| -[](https://sonarqube-l4ygcl-tools.pathfinder.gov.bc.ca/dashboard?id=BCRegistriesPayment) [](https://sonarqube-l4ygcl-tools.pathfinder.gov.bc.ca/dashboard?id=BCRegistriesPayment) [](https://sonarqube-l4ygcl-tools.pathfinder.gov.bc.ca/dashboard?id=BCRegistriesPayment) [](https://sonarqube-l4ygcl-tools.pathfinder.gov.bc.ca/dashboard?id=BCRegistriesPayment) [](https://sonarqube-l4ygcl-tools.pathfinder.gov.bc.ca/dashboard?id=BCRegistriesPayment) [](https://sonarqube-l4ygcl-tools.pathfinder.gov.bc.ca/dashboard?id=BCRegistriesPayment) |
| 7 | +BC Registries BCOL payment service. |
5 | 8 |
|
6 |
| -# BC Registries Payment System |
7 | 9 |
|
8 |
| -## Technology Stack Used |
9 |
| -* Python, Flask |
10 |
| -* Postgres - SQLAlchemy, psycopg2-binary & alembic |
| 10 | +## Development Environment |
11 | 11 |
|
12 |
| -## Third-Party Products/Libraries used and the the License they are covert by |
| 12 | +Follow the instructions of the [Development Readme](https://github.com/bcgov/entity/blob/master/docs/development.md) |
| 13 | +to setup your local development environment. |
13 | 14 |
|
14 |
| -## Project Status |
| 15 | +## Development Setup |
15 | 16 |
|
16 |
| -## Documentation |
| 17 | +1. Follow the [instructions](https://github.com/bcgov/entity/blob/master/docs/setup-forking-workflow.md) to checkout the project from GitHub. |
| 18 | +2. Open the bcol-api directory in VS Code to treat it as a project (or WSL projec). To prevent version clashes, set up a |
| 19 | +virtual environment to install the Python packages used by this project. |
| 20 | +3. Run `make setup` to set up the virtual environment and install libraries. |
| 21 | +4. Next run `pip install .` to set up the environment for running tests. |
17 | 22 |
|
18 |
| -GitHub Pages (https://guides.github.com/features/pages/) are a neat way to document you application/project. |
| 23 | +You also need to set up the variables used for environment-specific settings: |
| 24 | +1. Copy the [dotenv template file](./docs/dotenv_template) to somewhere above the source code and rename to `.env`. You will need to fill in missing values. |
19 | 25 |
|
20 |
| -## Security |
| 26 | +## Running BCOL-API |
21 | 27 |
|
22 |
| -Future - BCGov Keycloak |
| 28 | +1. Start the flask server with `(python -m flask run -p 5000)` |
| 29 | +2. View the [OpenAPI Docs](http://127.0.0.1:5000/api/v1). |
23 | 30 |
|
24 |
| -Current - JWT hack |
| 31 | +## Running Liniting |
25 | 32 |
|
26 |
| -## Files in this repository |
| 33 | +1. Run `make flake8` or `flake8 src/bcol_api tests`. |
| 34 | +2. Run `make pylint` or `pylint --rcfile=setup.cfg --disable=C0301,W0511 src/bcol_api test` |
27 | 35 |
|
28 |
| -``` |
29 |
| -docs/ - Project Documentation |
30 |
| -└── images |
31 |
| -└── icons |
| 36 | +## Running Unit Tests |
32 | 37 |
|
33 |
| -openshift/ - OpenShift-specific files |
34 |
| -├── scripts - helper scripts |
35 |
| -└── templates - application templates |
36 |
| -``` |
| 38 | +1. Tests are run from the Status bar at the bottom of the workbench in VS Code or `pytest` command. |
| 39 | +2. Next run `make coverage` to generate the coverage report, which appears in the *htmlcov* directory. |
37 | 40 |
|
38 |
| -## Deployment (Local Development) |
| 41 | +## Openshift Environment |
39 | 42 |
|
40 |
| -* Developer Workstation Requirements/Setup |
41 |
| -* Application Specific Setup |
42 |
| - |
43 |
| -## Deployment (OpenShift) |
44 |
| - |
45 |
| -See (openshift/Readme.md) |
46 |
| - |
47 |
| -## Getting Help or Reporting an Issue |
48 |
| - |
49 |
| -To report bugs/issues/feature requests, please file an [issue](../../issues). |
50 |
| - |
51 |
| - |
52 |
| -## Code standards |
53 |
| - |
54 |
| -Refer [checklist](https://github.com/bcgov/sbc-auth/wiki/API-code-review-checklist) |
55 |
| - |
56 |
| -## How to Contribute |
57 |
| - |
58 |
| -If you would like to contribute, please see our [CONTRIBUTING](./CONTRIBUTING.md) guidelines. |
59 |
| - |
60 |
| -Please note that this project is released with a [Contributor Code of Conduct](./CODE_OF_CONDUCT.md). |
61 |
| -By participating in this project you agree to abide by its terms. |
62 |
| - |
63 |
| -## License |
64 |
| - |
65 |
| - Copyright 2018 Province of British Columbia |
66 |
| - |
67 |
| - Licensed under the Apache License, Version 2.0 (the "License"); |
68 |
| - you may not use this file except in compliance with the License. |
69 |
| - You may obtain a copy of the License at |
70 |
| - |
71 |
| - http://www.apache.org/licenses/LICENSE-2.0 |
72 |
| - |
73 |
| - Unless required by applicable law or agreed to in writing, software |
74 |
| - distributed under the License is distributed on an "AS IS" BASIS, |
75 |
| - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
76 |
| - See the License for the specific language governing permissions and |
77 |
| - limitations under the License. |
| 43 | +View the [document](https://github.com/bcgov/sbc-auth/blob/development/docs/build-deploy.md). |
0 commit comments