ferdn4ndo / candlestick-data-lake

A data lake application for candlestick crawling, storage and syncronous (API) and asyncronous (WebSockets) serving
MIT License
0 stars 0 forks source link

CSDL Logo

CandleStick-Data-Lake

A data lake application for candlestick crawling, storage and syncronous (API) and asyncronous (WebSockets) serving.

Configuration (Environment)

To configure the container, copy the .env.template file to .env (you can use the command below). An explanation of each of the variables is also available in this section.

cp .env.template .env

Then edit the file to tweak the settings as you wish before running the container.

Variables

How to run

To build the image:

# Navigate to the project folder and run
docker build -f ./Dockerfile --tag candlestick-data-lake:latest .

For a single container run (that will expose port 8888 by default):

# Assuming .env file is at the current location
docker run -d --rm -e 8888 -v ./src/app:/usr/src/app --env-file ./env "$CONTAINER_NAME":local

Docker-compose version (will build and run):

# Navigate to the project folder and:
docker compose -f docker-compose.yml up --build

Endpoints

IMPORTANT: The websocket endpoints are still under design!

Testing

To run the test suite for CI/CD pipelines, run:

docker exec -it csdl-app sh -c "python -m unittest"

IMPORTANT: Coverage is still a ToDo

License

This application is distributed under the MIT license.

Contributors

Any help is appreciated! Feel free to review / open an issue / fork / make a PR.