- Ensure you have Docker and Docker Compose installed.
- For local development, ensure Node.js and Python 3.12 are installed.
- Build and start the Docker container:
docker-compose up
- Access the frontend at
http://localhost:3000. - Access the backend at
http://localhost:4000.
- Navigate to the
ai-chatbotdirectory. - Install dependencies:
pnpm install
- Start the development server:
pnpm dev
- Access the frontend at
http://localhost:3000.
- Navigate to the
backenddirectory. - Create and activate a virtual environment:
python3.12 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Start the FastAPI server:
uvicorn main:app --host 0.0.0.0 --port 4000 --reload
- The backend will be available at
http://localhost:4000.
- Ensure to configure the
.envfiles for both frontend and backend with necessary environment variables.
- To run database migrations, use:
pnpm run db:migrate
- Ensure all services are up and running before accessing the application.
- Adjust any configurations as necessary in the
.envfiles.