How to get started with Marten on OSX (Hint: There's nothing to it)

Since Jeremy announced v1 of Marten, I thought that this is a good moment to see if I can quickly get going with it on OSX. Surprisingly, this went super-smoothly.

What I had installed already:

Just follow the instructions and see if you get everything going. Once in Project Rider I then started a new Dotnet.Core Console application.

For the required postgres instance I use their official image, which allows you to set up a user with associated db by setting the environment variables POSTGRES_USER and POSTGRES_PASSWORD to whatever you think is right. Expose the postgres port and mount an appropriate folder if you want to persist the data you store and run the image. You can verify that everything is cool by using an application like pgAdmin and connecting to your instance.

Now to Marten. The Marten nuget package supports .NET Standard 1.3, so we don’t expect troubles. Calling the Marten documentation, we promptly have access to a Getting started page.

I copied the code, started the Console and it all ran successfully. I wish I could write more about the whole process for having something of a blog post. But I can’t. And that makes me very happy, as it means that the .NET Core ecosystem is getting interesting beyond Windows and for devs who don’t have to be on the cutting edge*) all the time.

*) that place with failing builds, incompatible APIs and breaking changes