philcali / pits-api

API backend for running Pi In The Sky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pi In The Sky - API

Python package CodeQL codecov

This is the API backend for the pinthesky console. In effect, this is a resource server authenticated by an AWS Cognito User Pools.

Run the Tests

Install the current directory:

python3 -m pip install -e .
pytest

Run the conventention analysis:

flake8

Build a zip

Obtain the latest archive to use for AWS Lambda deployment:

./dev.make-zip.sh | tail -1

Deploy to AWS Lambda

The service is geared towards an AWS API Gateway V2 HTTP API. The surrounding infrastructure must support the following:

  1. TABLE_NAME: name of the DynamoDB Table resource to store things
  2. DATA_ENDPOINT: AWS IoT data endpoint tied to the account

About

API backend for running Pi In The Sky


Languages

Language:Python 98.7%Language:Shell 1.3%