From 8ce3ce590334fa42fb5295142faac3500cc80ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 2 Aug 2024 14:34:32 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20links=20from=20tiangolo?= =?UTF-8?q?=20repo=20to=20fastapi=20org=20repo=20(#1285)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/config.yml | 4 ++-- .github/workflows/deploy-production.yml | 2 +- .github/workflows/deploy-staging.yml | 2 +- README.md | 32 ++++++++++++------------- backend/app/core/db.py | 2 +- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index fe71863..50bde36 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,7 +4,7 @@ contact_links: about: Please report security vulnerabilities to security@tiangolo.com - name: Question or Problem about: Ask a question or ask about a problem in GitHub Discussions. - url: https://github.com/tiangolo/full-stack-fastapi-template/discussions/categories/questions + url: https://github.com/fastapi/full-stack-fastapi-template/discussions/categories/questions - name: Feature Request about: To suggest an idea or ask about a feature, please start with a question saying what you would like to achieve. There might be a way to do it already. - url: https://github.com/tiangolo/full-stack-fastapi-template/discussions/categories/questions + url: https://github.com/fastapi/full-stack-fastapi-template/discussions/categories/questions diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 37593ad..a64d02a 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -8,7 +8,7 @@ on: jobs: deploy: # Do not deploy in the main repository, only in user projects - if: github.repository_owner != 'tiangolo' + if: github.repository_owner != 'fastapi' runs-on: - self-hosted - production diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index f455836..26bd692 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -8,7 +8,7 @@ on: jobs: deploy: # Do not deploy in the main repository, only in user projects - if: github.repository_owner != 'tiangolo' + if: github.repository_owner != 'fastapi' runs-on: - self-hosted - staging diff --git a/README.md b/README.md index b2dcf9a..afe124f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Full Stack FastAPI Template -Test -Coverage +Test +Coverage ## Technology Stack and Features @@ -26,31 +26,31 @@ ### Dashboard Login -[![API docs](img/login.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/login.png)](https://github.com/fastapi/full-stack-fastapi-template) ### Dashboard - Admin -[![API docs](img/dashboard.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/dashboard.png)](https://github.com/fastapi/full-stack-fastapi-template) ### Dashboard - Create User -[![API docs](img/dashboard-create.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/dashboard-create.png)](https://github.com/fastapi/full-stack-fastapi-template) ### Dashboard - Items -[![API docs](img/dashboard-items.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/dashboard-items.png)](https://github.com/fastapi/full-stack-fastapi-template) ### Dashboard - User Settings -[![API docs](img/dashboard-user-settings.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/dashboard-user-settings.png)](https://github.com/fastapi/full-stack-fastapi-template) ### Dashboard - Dark Mode -[![API docs](img/dashboard-dark.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/dashboard-dark.png)](https://github.com/fastapi/full-stack-fastapi-template) ### Interactive API Documentation -[![API docs](img/docs.png)](https://github.com/tiangolo/full-stack-fastapi-template) +[![API docs](img/docs.png)](https://github.com/fastapi/full-stack-fastapi-template) ## How To Use It @@ -68,7 +68,7 @@ But you can do the following: - Clone this repository manually, set the name with the name of the project you want to use, for example `my-full-stack`: ```bash -git clone git@github.com:tiangolo/full-stack-fastapi-template.git my-full-stack +git clone git@github.com:fastapi/full-stack-fastapi-template.git my-full-stack ``` - Enter into the new directory: @@ -86,7 +86,7 @@ git remote set-url origin git@github.com:octocat/my-full-stack.git - Add this repo as another "remote" to allow you to get updates later: ```bash -git remote add upstream git@github.com:tiangolo/full-stack-fastapi-template.git +git remote add upstream git@github.com:fastapi/full-stack-fastapi-template.git ``` - Push the code to your new repository: @@ -106,8 +106,8 @@ git remote -v origin git@github.com:octocat/my-full-stack.git (fetch) origin git@github.com:octocat/my-full-stack.git (push) -upstream git@github.com:tiangolo/full-stack-fastapi-template.git (fetch) -upstream git@github.com:tiangolo/full-stack-fastapi-template.git (push) +upstream git@github.com:fastapi/full-stack-fastapi-template.git (fetch) +upstream git@github.com:fastapi/full-stack-fastapi-template.git (push) ``` - Pull the latest changes without merging: @@ -181,16 +181,16 @@ Decide a name for your new project's directory, you will use it below. For examp Go to the directory that will be the parent of your project, and run the command with your project's name: ```bash -copier copy https://github.com/tiangolo/full-stack-fastapi-template my-awesome-project --trust +copier copy https://github.com/fastapi/full-stack-fastapi-template my-awesome-project --trust ``` If you have `pipx` and you didn't install `copier`, you can run it directly: ```bash -pipx run copier copy https://github.com/tiangolo/full-stack-fastapi-template my-awesome-project --trust +pipx run copier copy https://github.com/fastapi/full-stack-fastapi-template my-awesome-project --trust ``` -**Note** the `--trust` option is necessary to be able to execute a [post-creation script](https://github.com/tiangolo/full-stack-fastapi-template/blob/master/.copier/update_dotenv.py) that updates your `.env` files. +**Note** the `--trust` option is necessary to be able to execute a [post-creation script](https://github.com/fastapi/full-stack-fastapi-template/blob/master/.copier/update_dotenv.py) that updates your `.env` files. ### Input Variables diff --git a/backend/app/core/db.py b/backend/app/core/db.py index 782b79d..d260a85 100644 --- a/backend/app/core/db.py +++ b/backend/app/core/db.py @@ -9,7 +9,7 @@ engine = create_engine(str(settings.SQLALCHEMY_DATABASE_URI)) # make sure all SQLModel models are imported (app.models) before initializing DB # otherwise, SQLModel might fail to initialize relationships properly -# for more details: https://github.com/tiangolo/full-stack-fastapi-template/issues/28 +# for more details: https://github.com/fastapi/full-stack-fastapi-template/issues/28 def init_db(session: Session) -> None: