Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhi904485/fastapi_with_tartiflette
GraphQL With Fastapi Using (Tartiflette-Asgi)
https://github.com/abhi904485/fastapi_with_tartiflette
alembic asgi fastapi graphql sqlalchemy-orm tartiflette tartiflette-asgi
Last synced: 4 days ago
JSON representation
GraphQL With Fastapi Using (Tartiflette-Asgi)
- Host: GitHub
- URL: https://github.com/abhi904485/fastapi_with_tartiflette
- Owner: Abhi904485
- Created: 2024-12-24T08:07:37.000Z (10 days ago)
- Default Branch: master
- Last Pushed: 2024-12-24T17:54:50.000Z (10 days ago)
- Last Synced: 2024-12-24T18:33:42.007Z (10 days ago)
- Topics: alembic, asgi, fastapi, graphql, sqlalchemy-orm, tartiflette, tartiflette-asgi
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastApi With GraphQl & Tartiflette-Asgi
## Install Pyenv
### Install python with Pyenv On Ubuntu
```
sudo apt update
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
curl https://pyenv.run | bash
For Users of the Bash Shell
echo -e 'export PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'eval "$(pyenv init --path)"\neval "$(pyenv init -)"' >> ~/.bashrcFor Zsh Shell Users
echo -e 'export PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo -e 'eval "$(pyenv init --path)"\neval "$(pyenv init -)"' >> ~/.zshrc
exec "$SHELL"
pyenv --version
```### Install python with Pyenv on Mac
```
brew update
brew install pyenv
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
exec "$SHELL"
pyenv --version
```### Setup Virtualenv
```
pyenv install 3.12.8
pyenv virtualenv 3.12.8 fastapi_with_tartiflette_asgi
echo fastapi_with_tartiflette_asgi > .python-version
```### Install python Packages
```
pip install poetry
poetry install --no-root
```## How to Run
```
uvicorn main:app --reload
```## How to Migrate DB
```
alembic revision --autogenerate -m "Initial Migration"```
### How to Upgrade DB
```
alembic upgrade head
```### GraphQl UI is accessible at
```
http://127.0.0.1:8000/graphql
```