This repository is a sample project for helping you get started with Restack Cloud SDK. It showcases how to deploy applications, regardless of the programming language, in Restack and how they can communicate with each other.
- Frontend: The frontend is developed using Next.js, TailwindCSS, and ReactJS.
- Backend: The backend is implemented in Python.
The example application included in this repository performs a Question and Answer (QA) operation on a PDF file using LangChain and OpenAI.
- Deployment of applications in Restack.
- Communication between frontend and backend services.
- QA functionality on a PDF file using LangChain and OpenAI.
Restack Cloud SDK allows developers to seamlessly deploy their AI products, ensuring robust communication between services and efficient handling of complex operations.
To get started with this repository, follow the instructions below:
-
Create a repo based on this repository: Create repo from example
-
Clone your new repo into local
To run the application using Docker, follow these steps:
-
Build and start the Docker images for both frontend and backend:
docker-compose up
-
Access the application:
- Frontend:
http://localhost:3000
- Backend:
http://localhost:5000
- Frontend:
-
To stop the containers:
docker-compose down
To deploy the application to Restack Cloud, run the following command:
npm install @restackio/cloud
node restack_up.js
Once both the frontend and backend servers are running, you can access the application via your web browser. The frontend will interact with the backend to perform QA operations on a PDF file.
Feel free to contribute to this repository by submitting issues or pull requests.
This project is licensed under the MIT License.