NOTE - The project is still under development
Interactive docs are available under /api/docs
or here
The api allows you to avoid tracking a property (e.g. price) of a security manually. Instead, it lets you configure a notification that is sent automatically when the price of the security changes by some defined value. For a complete description visit the interactive docs. Additionally, you can:
- add notes to tracked securities
- list all tracked securities
The JSON body of the requests listed below is described in the docs.
- Register a user - send POST to
/api/user
. - Get a JWT - send POST to
/api/token/create
. - Use the JWT to authorize requests in the
Authorization: Bearer <JWT>
header.
NOTE - Run all commands from the project root
The project can be configured via .env file. Change .env.dev filename to .env.
Environment variables defined there will be passed to docker-compose
(docs)
NOTE - Set at least:
DJANGO_SECRET_KEY
TARGET_ENV (development|production)
With TARGET_ENV=development
-> docker-compose up
. Access in browser -> localhost:8080
This loads docker-compose.override.yml and mounts app directory to container.
Any code changes will restart server dynamically.
The api health check available at /api/ht/
- Run development server -
docker-compose up
- To run local dir tests -
docker-compose run app test
- Access to manage.py -
docker-compose run manage {args}
With TARGET_ENV=production
-> docker-compose -f docker-compose.yml up
. Access in browser -> localhost:8000/api/docs/
You can avoid building images by downloading already built images from dockerhub via
docker-compose pull
before executing docker-compose up
.
The api health check available at /api/ht/
- Run server -
docker-compose -f docker-compose.yml up
- To run tests -
docker-compose -f docker-compose.yml run app test
- Build docker images
- Run containers
- Run tests
- Push the docker images to the DockerHub