st-server

module
v0.0.0-...-fe5d25b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT

README

st-server

st-server is a comprehensive server-side application designed for stock trading platforms. It's composed of three microservices that handle various aspects of the trading platform's backend operations.

Services Overview

  • Authorization/Users Service (st-auth-svc): Manages user authentication and authorization, ensuring secure access to the platform.
  • Journals/Trades Service (st-journal-svc): Handles recording and processing of trade activities, maintaining a reliable trade history.
  • Gateway Service (st-gateway): Provides a RESTful interface for client interactions, leveraging the gin framework for efficient HTTP request handling.

Each service is designed to operate independently, communicating with the others through gRPC for high-performance and type-safe operations.

Getting Started

Follow these instructions to set up the project on your local machine for development and testing purposes.

Prerequisites
  • Go (version 1.x or later)
  • Docker (optional for containerization)
  • Minikube (optional for local Kubernetes deployment)
  • Skaffold (optional for continuous development with Kubernetes)
Installation and Local Development
  1. Clone the repository:

    git clone https://github.com/yourusername/st-server.git
    
  2. Navigate to the project directory:

    cd st-server
    
  3. Install dependencies:

    make install_deps
    
  4. Generate gRPC code for services:

    make proto_gw_auth proto_gw_journal proto_auth proto_journal
    
  5. Build services:

    make build_gateway build_auth build_journal
    
  6. Run services:

    make run_auth run_journal run_gateway
    

Testing

To run automated tests for this system:

make test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL