stvhwrd / Stock-Trading-System-HTTP-Server

📈💱 [Containerized Go server] HTTP Server for Stock Trading System project
1 stars 0 forks source link

Build Status

SENG 468 HTTP Server

The HTTP server component of the day trading system designed and built for SENG 468 at UVic

Installation

You must have Go and Git installed.

  1. Clone this repository.

git clone https://github.com/stvhwrd/SENG-468-HTTP-Server.git $GOPATH/src/github.com/stvhwrd/SENG-468-HTTP-Server

git clone git@github.com:stvhwrd/SENG-468-HTTP-Server.git $GOPATH/src/github.com/stvhwrd/SENG-468-HTTP-Server

  1. Install the dependencies.

go get -v -u github.com/joho/godotenv

  1. Build the Go files.

go build $GOPATH/src/github.com/stvhwrd/SENG-468-HTTP-Server

Configuration

In its production environment, the HTTP server will communicate with a Transaction Server, a User Account Database Server, and a Logging Server.

The ports on which to communicate must be specified at runtime, using a .env file.

The file should be located in the same directory as main.go (as it is by default in this repository).

Usage

The HTTP server can be started up using the go run command after building.

eg. cd $GOPATH/src/github.com/stvhwrd/SENG-468-HTTP-Server && go build && go run .

Updating

If you've already installed this repository as per installation, you may update in-place.

go get -u $GOPATH/src/github.com/stvhwrd/SENG-468-HTTP-Server

See Also

Components and documentation of the day trading system: