So I am using service stack with node quite successfully – but now I have to make some services. Why not use ServiceStack since its reputation and ease of use (in node anyways) is super easy. Lets get going recording the steps I took – cause I likely won’t remember it otherwise.
- make a new project (I chose blank)
- add service stack to your project OR … get the template (so skip this step) and it will be added automatically
- install the ServiceStackVS templates and make your 1st project
- I made my first app with it as per the demos at the bottom.
- I added to the main app – Swagger UI – which allows easy testing and documentation for the services. All I had to do was search for “Configure(” and add the code the recommend, add a using…. statement (as per the intellisense when it did not compile – yes I am very lazy/efficient)
- Bingo – up and running. Lets get to work (and it does)
There are lots of links at the bottom for further discussion. Also if you look carefully, there are links/text on how to add ServiceStack to an existing project of various form.
Other things I will need is to receive a filestream as a parameter in ServiceStack. And saving a filestream into a database. General SQL w. parms .
If you are wondering on some structure beyond the hello.cs example, try this.