Skip to content

Setup Instructions for Running the Project Locally #1544

Closed

Description

@mohamedachrefhacheni

Privileged issue

  • I'm @tiangolo or he asked me directly to create an issue here.

Issue Content

Hi team,

I'd like to propose adding a clear local setup guide to help new contributors or developers get the project running on their machines quickly.

what could be included in the README.md ?

Activity

  1. rissem commented on Apr 15, 2025

    @rissem

    First off I just want to say thank-you! Coming from Rails, I've always wished for a sensible list of good defaults for a full-stack app in the Python world and it seems like this is it!

    Let me know if a list of things that caused confusion for me would be helpful and I can clean up my notes for you.

  2. ChrisSQL commented on Apr 16, 2025

    @ChrisSQL

    I just started with this Stack so its all new to me. The biggest pain by far was hosting Traeffik. I still have no clue why its even used or what benefit it has.

    After months of developing locally i wanted to host and it was a huge pain after thinking it would be easy.

    In the end i used Render. Frontend and backend on Different Services and a Database running Postgres separate also. Was just a matter of getting the Env variables correct.

    Really should recommend a host that it can be deployed on very easily.

    Also very frustrating is the frontend setup to have to login. Should be able to just browse a website without an account and have access to endpoints etc or at least have an example of an endpoint that doesnt use Auth included.

  3. cassmtnr commented on Jun 28, 2025

    @cassmtnr
    Contributor

    The project has a lot of potential in my point of view.

    I didn't find any instructions how to setup the database.

    Maybe the steps could be revised, if you start in a new machine you probably have nothing installed, so maybe a setup.sh with installing all the tools, and then a step by step until the project is running fully?

  4. ChrisSQL commented on Jun 28, 2025

    @ChrisSQL

    After months of development as a learning experience with this i realised that NextJS is far superior for the frontend. SEO and image handling is incredible.

    I took the backend from here. Went to render to host FastAPI and Postgres DB then hosted a Nextjs frontend on Vercel.

    If they swapped this fronted to NextJS and added a one click hosting solution on something it would be the best available.

    I see a lot of comments saying they swapped the frontend so im not the only one.

  5. ChrisSQL commented on Jun 28, 2025

    @ChrisSQL

    Not step by step but rough guide would be

    Think of them as 3 different things for a start

    Have Github Branch

    Setup 2 x Web Services on Render and a PostgresDB

    PostgresDB - I ended up setting up tables manually using the models in the backend fields

    Backend
    Frontend

    Youll need to flip in and out of each setup to get your Frontend and Backend URLS etc as you setup

    When setting up Render Web Services on setup in the config in the directory use /frontend and /backend as base directory

    Then you just need to get all your ENV variables correct

    Best you could probably do is start and when you run into issues ask here and ill answer them as theres probably a few steps im forgetting. Ill reply ASAP

  6. ChrisSQL commented on Jun 28, 2025

    @ChrisSQL
  7. Zigr commented on Jun 28, 2025

    @Zigr

    Learn material part, guys.
    The template developer is great.

  8. ChrisSQL commented on Jun 28, 2025

    @ChrisSQL

    Learn material part, guys.
    The template developer is great.

    I did wish it worked out straight out the box for hosting for me. Thought me a lot but when I eventually got the site online I realised that NextJS was easy to swap out and just performed a lot better. Night and day really with SEO and site speed. If it wasn't for this boilerplate I wouldn't have even got a start.

  9. cassmtnr commented on Jun 28, 2025

    @cassmtnr
    Contributor

    Thanks for the answers :) I will check it out and let you know

  10. ChrisSQL commented on Jun 28, 2025

    @ChrisSQL
  11. golharam commented on Jul 23, 2025

    @golharam

    Same here from me, and I"m pretty familiar with everything used in this stack except for Traeffik. I was hoping to just clone this repo and run 'docker compose up' from the root directory. That worked...sort of...but I can't log in using test@example.com / changethis combination. I'm not sure this is write but that's what I found digging through the docker compose file. It would be nice to have this explicitly documented in the README or deployment guide.

    It would also be nice to see a tutorial that builds up to the template. Just my two cents...

  12. sarfere commented on Nov 16, 2025

    @sarfere

    The local operation of this project is extremely chaotic. I also don't see how to configure my existing database, and the documentation presents Docker as an indispensable dependency. Can't all these be removed? Perhaps I don't want Docker at all and just want to run and test it simply.

  13. jakob1379 commented on Dec 12, 2025

    @jakob1379

    I agree that the documentation could be a bit clearer but it is not that hard to spin up locally.

    Reading the .env the very first lines states:

    # Domain
    # This would be set to the production domain with an env var on deployment
    # used by Traefik to transmit traffic and aqcuire TLS certificates
    DOMAIN=localhost
    # To test the local Traefik config
    # DOMAIN=localhost.tiangolo.com

    So choose whichever you like (tiangolo.com is just for local htttps) it works fine either way.

    Depending on when you read this you might have to tweak this:

    BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,https://localhost,https://localhost:5173,http://localhost.tiangolo.com,http://dashboard.localhost.tiangolo.com,http://dashboard.localhost/"

    Besides that it is just running

    docker compose up -d --build --remove-orphans --renew-anon-volumes

    to bring up a fresh stack with the services at

  14. locked and limited conversation to collaborators on Jan 22, 2026
  15. converted this issue into a discussion #2141 on Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions