Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.36 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.36 KB

Stock monitor

Simple app to monitor a company on a stock market.

Stack

Requirements

This app is using Docker so make sure you have both: Docker and Docker Compose

Running

To run the app move to the app directory and call

docker-compose up -d

After that verify that all containers are up and working

docker-compose ps

You should see something similar to that:

          Name                        Command              State           Ports         
-----------------------------------------------------------------------------------------
stock-monitor_backend_1    /app/start.sh                   Up      0.0.0.0:8000->8000/tcp
stock-monitor_db_1         docker-entrypoint.sh postgres   Up      0.0.0.0:5434->5432/tcp
stock-monitor_frontend_1   npm start                       Up      0.0.0.0:3000->3000/tcp

To see the app run http://localhost:3000 in your web browser

Tests

To run the tests use the following commands

docker-compose run --rm backend python manage.py test
docker-compose run --rm frontend npm run test