/htn-api-workshop-2021

Source code for the Backend Web Development workshop for Hack the North 2021.

Primary LanguagePython

Intro to API Development

This is the source code for the Backend Web Development workshop for Hack the North 2021. It is a Book Collection API made with Python, Flask, and SQLite (or optionally CockroachDB Serverless).

VOD: https://www.youtube.com/watch?v=CATP51NSOzA

The complete workshop/guide is published at https://www.notion.so/jayshrivastava/Intro-to-API-Development-48254da668a94ae7a4cbe56227db7c3b

Setup

Please run the following command in the Replit shell before starting the API.

poetry install

This installs all the important dependencies we need.

References

Books Data: https://www.kaggle.com/jealousleopard/goodreadsbooks

CockroachDB PonyORM: https://www.cockroachlabs.com/docs/stable/build-a-python-app-with-cockroachdb-pony.html

Creating APIs with Python and Flask: https://programminghistorian.org/en/lessons/creating-apis-with-python-and-flask#what-is-an-api