Git Product home page Git Product logo

jmm-mh-th's Introduction

jmm-mh-th

Recommended

  • Github Actions (VSCode Extension)
  • Docker (VSCode Extension)

Setup

  1. Install poetry
pipx install poetry

Developing

To run the app locally:

cd app
poetry shell
uvicorn app.main:app --reload

Codespaces forwarding will open a prompt to show the app on a local browser:

Local browser view

Deploying

To build a deployable Docker image, you can run:

docker build . -t local

You can also push to the repo and see builds.

Further work

  • Didn't want to stand up a registry or cluster just for this, so those are no-ops
    • you could include provisioning the cluster in the Workflow too, though usually it's better to have an existing cluster to submit CI tasks to
  • Which means the k8s manifest isn't actually runnable
  • k8s manifest uses a ClusterIP which generally won't work and is a bad idea for 443 anyways (privileges + contention); in a real world scenario you'd want an Ingress, LB controller annotations, service mesh, whatever - any of which is more complex than the demo app in the first place!
  • Running linting and tests in the GH actions pipeline, or writing any tests to run :)
  • Timneouts, notifications, and other CI error handling

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.