- Install the latest .Net5.0 SDK here.
- If you don't have Visual Studio 2019 installed, open your favorite shell and navigate to the repository root, otherwise just open the jcs-es.sln file.
- Build the solution, using
dotnet build
command if you're in a shell; the solution should build just fine, although adotnet restore
may also be necessary. - Install the latest MongoDb Community Server edition here.
- Add the
mongod
andmongo
executables to your PATH - Create or choose some directory to contain the database files
- In a new shell, submit a
mongod --dbpath <data_directory>
command to start the mongodb server, where<data_directory>
is the relative or absolute path to your chose directory for the mongodb database files - In a new shell, submit a
mongo
command; you should see some output followed by the caret prompt>
. Submitting ashow dbs
command should reveal that your shell is now connected to the mongodb server
-
Run all the tests, using
dotnet test
if you're in the shell; all tests should pass except for one, which shows something likeExpected: 0 Actual: 125
The
Actual
value is the number of milliseconds it took to rehydrate an aggregate from 10001 events. -
If you like you can issue the following commands through mongodb
use jcs db.events.find().pretty() db.events.count() db.events.drop()