Skip to content

cosmic-byte/stock-exchange

Repository files navigation

Stock Exchange API

Setup and Installation

Note: make sure docker and docker-compose are installed

Development Server

Step 1

Build the containers

sh scripts/docker_build.sh build

Step 2

Run the containers

sh scripts/docker_build.sh up

or build and run with a single command

sh scripts/docker_build.sh up --build

Step 3

Open your web browser and view the application using the following urls

API Docs:  localhost:8001

Kibana: localhost:5601

Extras

Note: all docker-compose commands works after the script Eg: kill, stop, --no-cache etc.

sh scripts/docker_build.sh down
sh scripts/docker_build.sh kill
sh scripts/docker_build.sh build --no-cache
sh scripts/docker_build.sh run -d

To run unit tests

> docker-compose -f ./docker-compose-ci.yml build
> docker-compose -f ./docker-compose-ci.yml run app

Seed Test Data

Make sure the containers are up and running, then execute

> docker exec -it stock_api bash
/var/app#  python quick_test_seeding.py 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published