Git Product home page Git Product logo

Comments (1)

Martinsos avatar Martinsos commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.