This is the primary codebase for the GCS database and its API.
- Pull code
- Open folder in vscode
- Open Docker Desktop and start redis servers
- In vscode, open a terminal (if not already open, press Crtl + ` or Command + `)
- Check Dependencies
5a. Make sure you have .NET 7.0.305 installed (https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
5b. Make sure you have Node js installed (https://nodejs.org/en/download)
5c. Make sure you have NuGet packet manager and NuGet Gallery extension installed in vscode
5d. In vscode, Crtl/Command + Shift + P -> NuGet: Open NuGet Gallery
5e. Search and install StackExchange.Redis - Open terminal with Crtl/Command + `
- Run
dotnet run
to start connection to WebSocket - Open new terminal in vscode
- Run
node client.js
to test connection- This will start an endless loop of updating the number in the DB, push Crtl/Command + C to stop the script whenever
- Open Redis Commander and log in to access DB on the browser
- The Login Information for Redis Commander to see database information is under
.env
- The Login Information for Redis Commander to see database information is under
- You should now see the string with the last number sent using the js script
For Docker Setup:
- Create .env file if it doesn't already exist using format provided in .env.sample
- Enter the following line into the CLI: docker-compose up --detach
dotnet run
in console- Open Redis Commander and log in
cd Tests | dotnet test
/**
* <summary>
* This class performs an important function.
* </summary>
*/
public class MyClass { }
/**
* <summary>
* Enter description here for the second constructor.
* ID string generated is "M:MyNamespace.MyClass.#ctor(System.Int32)".
* </summary>
* <param name="i">Describe parameter.</param>
* <param name="ptr">Describe parameter.</param>
* <returns>Describe return value.</returns
*/
public int SomeMethod(int i, void* ptr) {return 1;}