Setting up a Dev environment
This is a guide to set up a dev environment for LearnHouse, it will guide you through the installation of the backend and the frontend.
Prerequisites
- Docker (opens in a new tab)
- Node.js 21.x (opens in a new tab)
- pnpm (opens in a new tab)
- Python 3.12.x (opens in a new tab)
- Poetry (opens in a new tab)
- macOS, Linux or Windows
Backend configuration
Get the repository
git clone https://github.com/sokrates-ai/platformcd platformPrepare Local Development Environment
make setupThis will install all the dependencies needed and spin up the following containers for development:
- A Postgres database
- A Redis server
- A Chromadb server
⚠️
Make sure your container runtime has at least 4GB of RAM allocated, as default settings may vary by tool
Run the Backend and Frontend in Development Mode
Run the Backend in Dev mode
make api-devmake web-devCheck the API
Congratulations, you're done! 🎉
Visit the app at http://localhost:3000/ (opens in a new tab)
⚠️
If your development database gets corrupted, try running the following command:
make resetNext Steps
Thanks for contributing to Sokrates 💟