Coder Social home page Coder Social logo

litestar-org / litestar-hello-world-stale Goto Github PK

View Code? Open in Web Editor NEW
17.0 6.0 10.0 377 KB

The minimum Litestar application

License: MIT License

Python 100.00%
starlite starlite-framework starlite-api starlite-template litestar litestar-framework litestar-api litestar-template

litestar-hello-world-stale's Introduction

Litestar Logo - Light Litestar Logo - Dark

Quality Gate Status Coverage Technical Debt Maintainability Rating Reliability Rating Vulnerabilities Bugs

Discord Matrix Reddit

litestar-hello-world

Minimum Litestar Implementation.

$ poetry shell

$ poetry install

$ litestar run --reload

$ curl localhost:8000/ -w "\n"

To use for Litestar development

If you want to use this app to test a local version of Litestar, the litestar dependency in pyproject.toml to:

litestar = {path = "../litestar", develop = true}

This assumes that Litestar and this app exist in the same directory.

Run uvicorn with:

$ poetry run uvicorn main:app --reload --reload-dir "../litestar/litestar"

Code Quality

After cloning:

$ pre-commit install

Run on all files:

$ pre-commit run --all-files

Run a specific hook:

$ pre-commit run mypy --all-files

litestar-hello-world-stale's People

Contributors

dependabot[bot] avatar goldziher avatar jacobcoffee avatar peterschutt avatar provinzkraut avatar tony1658 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

litestar-hello-world-stale's Issues

Docs: Errors in the readme?

Summary

Hey,

shouldn't you curl /sync or /async instead of / ? - otherwise you'll get a 404.

For the unicorn proccess, shouldn't the name be poetry run uvicorn app:app --reload

since there is no main?

ERROR: Error loading ASGI app. Could not import module "main".

Kind regards.

Docs: Fix readme typos

Summary

Readme has a couple typos. ltiestar-hello-world should be litestar-hello-world.

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.