-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix BL3P entry in the readme * Add alt to logo * Update README * VSCode stuff
- Loading branch information
Showing
8 changed files
with
227 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -454,3 +454,6 @@ launchSettings.json | |
|
||
## Project specific | ||
**/keys.bin | ||
dist/ | ||
data/** | ||
!data/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "CLI: Launch", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "${workspaceFolder}/src/ExchangeSharpConsole/bin/Debug/netcoreapp3.0/exchange-sharp.dll", | ||
"args": [ | ||
// array with the arguments to test the CLI tool | ||
// e.g. | ||
"ws-orderbook", "-e", "bl3p", "-s", "btceur" | ||
], | ||
"cwd": "${workspaceFolder}/data/", | ||
"console": "internalConsole", | ||
"stopAtEntry": false | ||
}, | ||
{ | ||
// to be used with the CLI tool | ||
// on Debug configuration, all commands accept a --debug flag. | ||
// The program will print to the console the PID that you have to attach to. | ||
// e.g. `$ exchange-sharp ws-orderbook --debug -e bl3p` | ||
"name": "CLI: Attach", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:pickProcess}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/src/ExchangeSharpConsole/ExchangeSharpConsole.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/src/ExchangeSharpConsole/ExchangeSharpConsole.csproj", | ||
"-o", | ||
"${workspaceFolder}/dist", | ||
"-c", | ||
"${input:Configuration}", | ||
"/property:GenerateFullPaths=true" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "test", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"test", | ||
"${workspaceFolder}/src/ExchangeSharpConsole/ExchangeSharpConsole.csproj", | ||
"/property:GenerateFullPaths=true" | ||
], | ||
"problemMatcher": "$msCompile", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
} | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"options": [ | ||
"Debug", | ||
"Release" | ||
], | ||
"id": "Configuration", | ||
"type": "pickString", | ||
"default": "Debug", | ||
"description": "The configuration to build", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Building | ||
|
||
#### Required tools | ||
- [.NET Core SDK 3.0](https://dotnet.microsoft.com/download/dotnet-core/3.0) (you can check the exact version on `global.json` in the root folder). | ||
|
||
#### Editing (Optional tooling) | ||
|
||
On all platforms: | ||
- JetBrains Rider | ||
- VS Code (with C#/Omnisharp extension) | ||
- MonoDevelop | ||
|
||
On Windows: | ||
- Visual Studio 2019 | ||
|
||
On Mac: | ||
- Visual Studio for Mac | ||
|
||
### Compiling | ||
|
||
All Platforms (command line): `dotnet build ExchangeSharp.sln` \ | ||
Windows: Open ExchangeSharp.sln in Visual Studio and build/run \ | ||
|
||
#### Creating a release version | ||
|
||
##### From the command line (bash/powershell): | ||
|
||
`dotnet publish src/ExchangeSharpConsole -o $PWD/dist -c Release -r <RID>` | ||
|
||
Change `<RID>` to whatever platform you are using. More info [here](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog#using-rids). | ||
|
||
##### From Visual Studio | ||
|
||
You can also publish from Visual Studio (right click project, select publish), which allows easily changing the platform, .NET core version and self-contained binary settings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Just to keep this folder here (this folder can be used to store data without commiting it to git) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ -z $INSTALL_DIR ]; then | ||
INSTALL_DIR=/usr/local/bin/ | ||
else | ||
INSTALL_DIR="$(realpath -s $INSTALL_DIR)" | ||
fi | ||
|
||
OS= | ||
case "$(uname -s)" in | ||
Darwin) | ||
OS=osx | ||
;; | ||
Linux) | ||
OS=linux | ||
;; | ||
CYGWIN*|MINGW32*|MSYS*) | ||
OS=win | ||
;; | ||
*) | ||
echo -e 'Failed to identify the OS.' | ||
return 1 | ||
;; | ||
esac | ||
|
||
TAG=$(curl -Ssf https://api.github.com/repos/johnnyasantoss/ExchangeSharp/releases/latest | jq -r .name) | ||
echo "Downloading version: '${TAG}'..." | ||
|
||
curl -SfL# -o /tmp/exchangesharp.zip "https://github.com/johnnyasantoss/ExchangeSharp/releases/download/${TAG}/${OS}-x64.zip" | ||
|
||
unzip -qq -o /tmp/exchangesharp.zip -d /tmp/exchangesharp/ | ||
|
||
sh -c "set -ex; sudo mv /tmp/exchangesharp/exchange-sharp ${INSTALL_DIR}exchange-sharp" | ||
|
||
rm -rf /tmp/exchangesharp.zip /tmp/exchangesharp/ | ||
|
||
echo "🎉 Installed in ${INSTALL_DIR}exchange-sharp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters