Skip to content

REST API for the Stock Buddy portfolio monitoring platform.

License

Notifications You must be signed in to change notification settings

horvathmarton/stock-buddy-api

Repository files navigation

Stock Buddy API

Development Notes

Getting Started

To start working with the Stock Buddy API, follow these steps:

  1. 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
  1. Install a recent Python version (3.9 or higher) and pip.

  2. Install PostgreSQL development dependencies for binary support.

  3. Install the project's Python dependencies using pip:

python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
  1. Prepare your environment variables file based on the provided example.env file and load it.

  2. (Destructive Action) Recreate the database schema:

python manage.py recreate_db
  1. (Destructive Action) Perform the initial database migration:
python manage.py migrate
  1. 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

Contributing

We welcome contributions to the Stock Buddy API project. If you'd like to contribute, please read our Contribution Guidelines to get started.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

REST API for the Stock Buddy portfolio monitoring platform.

Topics

Resources

License

Stars

Watchers

Forks

Languages