ecosystem2 / FastSvelte3Pback

Apache License 2.0
1 stars 0 forks source link

API microservice, using Python and FastAPI, for testing files against industry schemas. Data validation uses Pandera.

Development Instructions

Clone this repo and install Python. From the root directory of this repo, run:

python -m venv ./venv #Create your python virtual environment

#WINDOWS
venv\Scripts\activate.bat
#LINUX
. venv/bin/activate

pip install --no-cache-dir --upgrade -r requirements.txt #Install project dependancies 

cd into the root directory with main.py

uvicorn main:app --reload #Start the Fast API server

Typically hosted at http://localhost:8000.

Folder Structure

Production Instructions

A docker file and github workflow is included within this repository. When a release is created, the docker container is built and submitted to dockerhub.

It is assumed you already have accounts for Dockerhub and Github, along with a Docker instance set up for the built container to run on. If any information is needed on how ecosystem2 handles hosting, please reach to us via our website or email.

Seting up dockerhub access token

Setting up dockerhub credentials

Building docker container

Feel free to use the included docker-compose file, please note that it uses Traefik in order to create routes and assign SSL certificates.

Screenshot Description
Current state of the webapp.

TODO

Contributions

Pull requests are appreciated!