To start working with the Stock Buddy API, follow these steps:
- Start PostgreSQL either as a service or container. If using Docker, run the following command:
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres
-
Install a recent Python version (3.9 or higher) and pip.
-
Install PostgreSQL development dependencies for binary support.
-
Install the project's Python dependencies using pip:
python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
-
Prepare your environment variables file based on the provided example.env file and load it.
-
(Destructive Action) Recreate the database schema:
python manage.py recreate_db
- (Destructive Action) Perform the initial database migration:
python manage.py migrate
- Start the Stock Buddy API by running the following command:
python manage.py runserver
Alternatively, you can start the Stock Buddy API using Docker Compose. Build and run it with the following command:
docker-compose build && docker-compose up
We welcome contributions to the Stock Buddy API project. If you'd like to contribute, please read our Contribution Guidelines to get started.
This project is licensed under the MIT License - see the LICENSE file for details.