Ensure you have the following installed on your system:
- Git (version 2.20 or higher)
- Docker (version 20.10 or higher)
- Docker Compose (version 1.29 or higher)
- Poetry (for managing Python dependencies)
git clone https://github.com/yourusername/sparc-framework.git
cd sparc-framework
-
Copy the sample environment file:
cp sample.env .env
-
Open the
.env
file and set the required environment variables:OPENAI_API_KEY=your_openai_api_key AIDER_MODEL=your_model_choice # Add other necessary environment variables as needed
Build and run the containers using Docker Compose:
docker-compose up --build -d
If you prefer to run the services manually without Docker:
-
Install Python Dependencies:
cd example/Completion/app poetry install
-
Install Node.js Dependencies:
cd ../../../ npm install
The application should be running automatically after starting the Docker containers. To check the status:
docker-compose ps
-
Start the Python Application:
cd example/Completion/app poetry run uvicorn main:app --host 0.0.0.0 --port 8000
-
Start the Node.js Application:
cd ../../../ npm start
Ensure all dependencies are installed, then run the tests using Make:
make test
This will execute both Python and Node.js tests.
make build
make deploy
-
Docker Issues:
Ensure Docker and Docker Compose are correctly installed and running. Check container logs if services are not starting as expected:
docker-compose logs
-
Python Dependencies:
If you encounter issues with Poetry, try reinstalling dependencies:
poetry install --no-root
-
Node.js Issues:
If
npm install
fails, try clearing the npm cache and reinstalling:npm cache clean --force npm install
Please refer to the CONTRIBUTING.md file for guidelines on how to contribute to this project.
This project is licensed under the MIT License. See the LICENSE file for details.