Skip to content

Latest commit

 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple backend to get data about the NYSE and NASDAQ exchanges as well as the securities listed on them. (WIP)

generating gRPC and Protobuf files:

find ./api/proto/ -name "*.proto" -exec ~/Downloads/protoc-31.1-osx-aarch_64/bin/protoc --proto_path=./api/proto \
       --cpp_out=./api \
       --grpc_out=./api \
       --plugin=protoc-gen-grpc=/opt/homebrew/Cellar/grpc/1.74.1/bin/grpc_cpp_plugin {} +

to start server:

export CONFIG_LOCATION={PathToRepo}/stock-market-service/src/api/config
./cmake-build-debug/src/api/stock-market-api --env local 

to start local db for first time:

cd postgresdb/local-docker
docker compose up # add -d for detached mode 

to start up local db every other time

docker start stock-db

to initialize local DB with some basic data and schema:

psql -h localhost -p 5432 -U localdbusr -d stock-db -f postgresdb/scripts/sql/init.sql

to access db:

psql -h localhost -p 5432 -U localdbusr -d stock-db

to build:

mkdir build 
cd build
CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake ..
cmake --build .

to run clang-format:

find ./src -type f \( -name "*.h" -o -name "*.cpp" \) -exec clang-format -i {} +

to run clang-tidy:

find ./src -type f \( -name "*.h" -o -name "*.cpp" \) | xargs -I{} /opt/homebrew/opt/llvm/bin/clang-tidy {} -p build --header-filter='^./src/.*'

About

This is a simple backend to get data about the NYSE and NASDAQ exchanges as well as the securities listed on them. (WIP)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages