Kumaran
Kumaran
WWasp-lang
Created by Kumaran on 5/3/2024 in #đŸ™‹questions
Having multiple generator in schema.prisma
Yes, easiest solution for v0/v1 would be is to start python webserver in a separate Dockerfile. You can even enhance it by putting both node and python in same network. Then the next upgrade could be trying to start both in same.
14 replies
WWasp-lang
Created by Kumaran on 5/3/2024 in #đŸ™‹questions
Having multiple generator in schema.prisma
Thanks for providing support and listening to my opinions
14 replies
WWasp-lang
Created by Kumaran on 5/3/2024 in #đŸ™‹questions
Having multiple generator in schema.prisma
If you are going to support python, then please try to provide an option to include and start python webserver in wasp dockerfile itself. Easiest way is to generate a separate dockerfile for python stuff. But once that is accomplised maybe try to do including python in wasp dockerfile.
14 replies
WWasp-lang
Created by Kumaran on 5/3/2024 in #đŸ™‹questions
Having multiple generator in schema.prisma
Hello @martinsos, Currently my implementation is same as the first way mentioned under Using Python right now in the above issue. In the wasp repo itself, in a separate directory, I keep all my FastAPI code and I also have a pyproject.toml to manage library version, dependencies, tool configs, etc. I have a separate Dockerfile for FastAPI deployment. I thought of adding FastAPI code in the wasp docker image itself by manipulating wasp generated Dockerfile but decided against it as this could quickly get out of control. I define all my tables required by both node and python as entities in the main.wasp file itself. To generate prisma client for python, I use an approach which is similar to what @miho mentioned above. I call the FastAPI routes from node code. One can host the FastAPI docker either in same machine as node or in a separate machine as per their need. This is the approach which is currently working for me.
14 replies
WWasp-lang
Created by Kumaran on 11/3/2023 in #đŸ™‹questions
Can I host the frontend in github pages?
Writing it here to help anyone having problems with deploying frontend to github pages.
7 replies
WWasp-lang
Created by Kumaran on 11/3/2023 in #đŸ™‹questions
Can I host the frontend in github pages?
Hello @miho. Unfortuantely it doesn't works because of this reason - https://create-react-app.dev/docs/deployment/#notes-on-client-side-routing. I had to use this - https://github.com/rafgraph/spa-github-pages#usage-instructions as a fix.
7 replies