https://github.com/jellydn/fastapi-apps
This repository contains two demo applications built with FastAPI, managed as a monorepo using Moon.
https://github.com/jellydn/fastapi-apps
fastapi moon
Last synced: 7 months ago
JSON representation
This repository contains two demo applications built with FastAPI, managed as a monorepo using Moon.
- Host: GitHub
- URL: https://github.com/jellydn/fastapi-apps
- Owner: jellydn
- License: mit
- Created: 2024-02-22T14:46:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T05:14:43.000Z (over 1 year ago)
- Last Synced: 2024-05-02T02:27:55.509Z (over 1 year ago)
- Topics: fastapi, moon
- Language: TypeScript
- Homepage: https://fastapi-demo-app.fly.dev/docs
- Size: 112 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to fastapi-apps 👋
> This repository contains two demo applications built with [FastAPI](https://fastapi.tiangolo.com), managed as a monorepo using [Moon](https://moonrepo.dev).
[](https://www.youtube.com/watch?v=YrBqX-lvSgk)
## Applications
2. **[App 1](./apps/app1/README.md)**: This application is set up using the traditional `requirements.txt` approach for dependency management.
1. **[App 2](./apps/app2/README.md)**: This application is set up using the `poetry` approach for dependency management.
1. **[Client](./apps/client/README.md)**: This is a client app that interacts with the FastAPI server.## Getting Started
### Prerequisites
- **Python**: You have installed Python 3.8 or higher. If you need to install a specific version of Python, we recommend using [pyenv](https://github.com/pyenv/pyenv).
- **Moon**: You have installed [Moon](https://moonrepo.dev/), which is used to manage this monorepo.
- **Dependency Management Tools**: Depending on the application, you will need different tools:
- For App 1, you need pip, which is typically installed with Python.
- For App 2, you need [Poetry](https://python-poetry.org) for dependency management.### Installation
1. Clone the repo
2. Run `moon run :install` to install dependencies for both apps### Running the Apps
Use Moon to run the apps:
#### Run Server
- Run App 1 with `moon run app1:dev`
#### Run Tests
- Run App 2 with `moon run app2:test`
## Resources
- [Tutorial - User Guide - FastAPI](https://fastapi.tiangolo.com/tutorial/)
- [FastAPI Best Practices and Conventions we used at our startup](https://github.com/zhanymkanov/fastapi-best-practices)
- [Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Docker, automatic HTTPS and more.](https://github.com/tiangolo/full-stack-fastapi-postgresql)
- [astral-sh/rye: a Hassle-Free Python Experience](https://github.com/astral-sh/rye)## Author
👤 **Huynh Duc Dung**
- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)## Show your support
Give a ⭐️ if this project helped you!
[](https://ko-fi.com/dunghd)
[](https://paypal.me/dunghd)
[](https://www.buymeacoffee.com/dunghd)