Table of Contents
- Clone or fork the repo
- GitHub Desktop: download here
- Clone repo through with git
$ git clone https://github.com/LabConnect-RCOS/LabConnect-Backend.git
- To fork, press the fork button on the top right of the repo, or here
- Install Python 3.12.4 here
- Install Libraries
- Download through the command line
$ python3 -m pip install -r requirements.txt
-
Run pytest
- Run all the test files and generate a coverage report. Coverage reports are setup to output to the terminal and provide an HTML file that can be viewed to show what branches or statements are not covered. It is in the project's best interest to have high coverage to ensure all statements and branches work as expected.
$ make test
or manually
$ python3 -m pytest
or manually with a coverage report generated
$ python3 -m pytest --cov
-
Run flask with python directly
- Run all the test files
$ make develop
or with Makefile
$ python run.py
Create PRs to release branch, upon merge a new docker container will be created and pushed. This will be planned for weekly pushes on Tuesdays.
Use the docker container in the packages tab. You can set these environment variables:
- SECRET_KEY
- JWT_SECRET_KEY
- FRONTEND_URL
- DB
- Run gunicorn to test how the service runs in production
or with Makefile
$ make run
$ gunicorn run:app -w 6 --preload --max-requests-jitter 300 --bind 0.0.0.0:8000
Running list of contributors to the LabConnect project:
- Rafael Cenzano [Project Lead]
- Siddhi W [Frontend / Backend]
- Mrunal A [Frontend / Backend]
- Sarah W [Backend]
- Ramzey Y [Backend]
- Will B [Frontend]
-
- Sidarth E [Frontend]
- Abid T [Frontend / Backend]
- Nelson [Backend]
- Duy L [Database Systems]
- Yash K [Frontend]
- Sam B [Scraping / Integration]
We extend our special thanks support and opportunity provided by the RCOS community.
Distributed under the Apache License. See LICENSE for more information.