Connecting Python to JavaScript #152092
-
BodyI am trying to code a chatbot that takes the input from JavaScript and returns a answer from a Python library. Is there any way to connect it other than an API? Preferably in JSON format. I was wondering if I could change the JSON file and read it? Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Naksh-Rathore |
Beta Was this translation helpful? Give feedback.
@Naksh-Rathore
It is great you've learnt JS and Python. I would suggest to go one step further by choosing popular frameworks for both to leverage a full stack application. Here is a simple full stack application
todo app
which leveragesfastapi
, a python framework for creating APIs andnextjs
which is a JavaScript framework.Here is a full tutorial but language of this playlist Link is Hindi/Urdu. However, You can access the code from this repository Link . By creating this simple project, you can take your learning a step ahead.
fastapi
andnextjs
both are popular and widely used frameworks in the industry.