Comments (1)
Here is how user is currently combining Python with Wasp:
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.
Discord convo: https://discord.com/channels/686873244791210014/1235922607317188732/1239462541147770890 .
from wasp.
Related Issues (20)
- Reorganize docs sidebar
- We are missing docs on Page and Route
- Allow postponing or even turning off email verification
- Session ID is removed unexpectedly HOT 1
- Support easy sharing of .env files HOT 2
- Consider having .env.client in version control by default HOT 1
- Make sure users can easily discover richer documentation for features in tutorial HOT 3
- tsconfig.json(2,14): error TS6053: File '@tsconfig/node18/tsconfig.json' not found HOT 37
- Provide better error messaging when env vars are missing in production HOT 2
- Can we have better error messages for TS5097: non '.ts' extension used in a query or operation ext import HOT 3
- Add CHECKPOINT_DISABLE=1 env var to disable Prisma's fauly telemetry
- Project failed to compile HOT 1
- Refactor OAuth implementation
- Switch from dotenv-vault to dotenvx?
- Resolving `ext-src` imports in the SDK if the user declares an import with the `.js` ext HOT 2
- Awaiting an action in the client setup function prevents render HOT 3
- Fix strange Prisma inferred type errors
- Improve Railway deployment docs HOT 1
- onAuthSucceededRedirectTo value isn't respected when the user visits login route post successful auth HOT 4
- Is arm64 supported for the docker image? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasp.