Skip to content

Seamlessly run .net core apps using this CLI to avoid opening multiple code editors or instances of visual studio.

Notifications You must be signed in to change notification settings

coderookie1994/Microstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microstack

Seamlessly run .net core apps using this CLI to avoid opening multiple code editors or instances of visual studio.

This CLI tool was primarily built to support non docker based workflows, where manually multiple services need to be spanwed up to work with the application stack. The idea is to ease day to day development by being concerned with only what is required, i.e to run the bare minimum. The CLI starts all the services specified in the background, so the developer is fully focused on the service that he/she is developing.

If you have microservices like this where
a) A ---> B ---> C
b) A ---> B ---> C
                |----> D
---> dependsOn
If you work on C, to test it end to end you would have to run A and B. The json configuration allows you to set configuration urls to override the default config, by setting the overridden environment variables directly into the process's environment for instance :-

"profile2": [
    {
      "StartupProjectPath": "C:\\github.com\\ServiceB",
      "ProjectName": "ServiceB",
      "NextProjectName": "ServiceC",
      "GitProjectRootPath": "C:\\github.com\\ServiceB",
      "PullLatest": false,
      "Port": 5001,
      "Verbose": false,
      "ConfigOverrides": {
        "ServiceC": "https://localhost:6001",
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  ]

The configOverrides object contains the "ServiceC" value which has to be overridden.

Microstack CLI

Use the "new" command to generate config files with the [options] switch. The JSON configuration can be used either by providing the [-c] switch for path, or set the "MSTKC_JSON" environment variable to point to the configuration file New subcommand

To run the services, use the "run" command with [options] Run subcommand

To stop microstack, press CTRL + C

About

Seamlessly run .net core apps using this CLI to avoid opening multiple code editors or instances of visual studio.

Resources

Stars

Watchers

Forks

Packages

No packages published