devlipe / stocks-selector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stocks Selector

This is a simple project written in go. It's a stocks selector that given a list of stocks, each one with their data, can filter and rank them. The project utilizes Joel GreenBlatt's Magic Formula, along with other indicators to list the stocks with the most value within.

Deployment

To deploy this project run

  docker compose build

This will build the service. Since the project uses the stdin, it cannot be deployed by docker compose up.

To run the service

  docker compose run selector

This command will run it.

You can also run go run or go build && ./stocks-selector to start the app.

Installation

As a go project, you can install it using the following commands

  go build
  go install

Then you should have the following command available on your CLI

  stocks-selector

Acknowledgements

Authors

Lessons Learned

The purpose of this project was to learn a bit more about docker, environmental variables, and go. It uses the latest golang feature, which is generics functions. It was nice to also learn how to manipulate text on the terminal, and gave the app different behaviors based on the os.

Disclaimer

This is not a investment advice. Use it only for learning purposes

About


Languages

Language:Go 99.5%Language:Dockerfile 0.5%