full_stack.mdx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ---
  2. title: 'Full Stack'
  3. ---
  4. The Full Stack app example can be found [here](https://github.com/embedchain/embedchain/tree/main/examples/full_stack).
  5. This guide will help you setup the full stack app on your local machine.
  6. ### 🐳 Docker Setup
  7. - Create a `docker-compose.yml` file and paste the following code in it.
  8. ```yaml
  9. version: "3.9"
  10. services:
  11. backend:
  12. container_name: embedchain-backend
  13. restart: unless-stopped
  14. build:
  15. context: backend
  16. dockerfile: Dockerfile
  17. image: embedchain/backend
  18. ports:
  19. - "8000:8000"
  20. frontend:
  21. container_name: embedchain-frontend
  22. restart: unless-stopped
  23. build:
  24. context: frontend
  25. dockerfile: Dockerfile
  26. image: embedchain/frontend
  27. ports:
  28. - "3000:3000"
  29. depends_on:
  30. - "backend"
  31. ```
  32. - Run the following command,
  33. ```bash
  34. docker-compose up
  35. ```
  36. 📝 Note: The build command might take a while to install all the packages depending on your system resources.
  37. ![Fullstack App](https://github.com/embedchain/embedchain/assets/73601258/c7c04bbb-9be7-4669-a6af-039e7e972a13)
  38. ### 🚀 Usage Instructions
  39. - Go to [http://localhost:3000/](http://localhost:3000/) in your browser to view the dashboard.
  40. - Add your `OpenAI API key` 🔑 in the Settings.
  41. - Create a new bot and you'll be navigated to its page.
  42. - Here you can add your data sources and then chat with the bot.
  43. 🎉 Happy Chatting! 🎉