Soverant application
- under construction
- Python 3.8+
- Node.js 12+
git clone [email protected]:soverant/poc.git
cd poc
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
You can install all dependencies for both the back-end and front-end using the main.py
script.
python main.py development --install
Alternatively, you can install dependencies manually:
pip install -r backend/requirements.txt
cd frontend
npm install
You can run the application in either development or production mode using the main.py
script.
python main.py development
python main.py production
- update backend openapi spec at ./backend/openapi.json
- generate frontend client at ./frontend/src/app/lib/generated-client
python main.py generation
project use .env and environment variable to read config:
OPENAI_TOKEN="YOUR OPENAI TOKEN"
LOG_LEVEL=""
HOST=""
PORT=""
ENVIRONMENT=""
ORM_DB_URL=""
UNMANAGED_DB_URL=""
OPENAI_TOKEN=""
NEXT_PUBLIC_API_BASE_URL="API Server URL"
The application streams logs from both the FastAPI back-end and the Next.js front-end to the console using the Python logging module.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.