Updated 04. Setting eShopOnContainer solution up in a Mac, VS for Mac or with CLI environment (dotnet CLI, Docker CLI and VS Code) (markdown)

Cesar De la Torre 2017-10-25 13:17:08 -07:00
parent d6e3389cde
commit e5a5176596

@ -56,19 +56,19 @@ With that, you'll have the code at /Users/yourUser/MyGitRepos/eShopOnContainers
## Open the "eShopOnContainers-ServicesAndWebApps.sln" solution with VS for Mac
Run Visual Studio for Mac and open the solution 'eShopOnContainers-ServicesAndWebApps.sln'.
Run Visual Studio for Mac and open the solution `eShopOnContainers-ServicesAndWebApps.sln`.
Just for running the containers/microservices and web apps, do NOT open the other solutions, like 'eShopOnContainers.sln' as those solutions will also open the Xamarin projects and that might slow you down.
If you just want to run the containers/microservices and web apps, do NOT open the other solutions, like `eShopOnContainers.sln` as those solutions will also open the Xamarin projects and that might slow you down when testing due to additional dependencies in VS.
After opening the solution, it is recommended to wait for a few minutes as VS will be restoring many NuGet packages and the solution won't be able to compile or run until it gets all the nuGet packages dependencies, in the first place (this time is only needed the first time you open the solution. Next times it is a lot faster).
After opening the `eShopOnContainers-ServicesAndWebApps.sln` solution for the first time, it is recommended to wait for a few minutes as VS will be restoring many NuGet packages and the solution won't be able to compile or run until it gets all the nuGet packages dependencies, in the first place (this time is only needed the first time you open the solution. Next times it is a lot faster).
This is VS for Mac with the "eShopOnContainers-ServicesAndWebApps.sln" solution.
This is VS for Mac with the `eShopOnContainers-ServicesAndWebApps.sln` solution.
![image](https://user-images.githubusercontent.com/1712635/32020102-f691b96a-b983-11e7-8960-32e2e2968d3e.png)
## Run eShopOnContainers from VS for Mac (F5 or Ctrl+F5)
Make sure that the by default start-up project is the Docker project named 'docker-compose'.
Make sure that the by default start-up project is the Docker project named `docker-compose`.
Hit Ctrl+F5 or press the "play" button in VS for Mac.
@ -80,6 +80,9 @@ Once the solution is up and running, you should be able to see it in the browser
http://localhost:5100
![image](https://user-images.githubusercontent.com/1712635/32020661-cfbfe4ea-b985-11e7-8c03-cf313130be70.png)
IMPORTANT: In order to have the full app working, like being able to login with a user and add items to the basket and create orders, or being able to consume the services from a remote Xamarin or web SPA, you need to configure additional steps for the app, like the IP to be used by the Identity Service because it needs to be redirected, etc. - Check the additional configuration below.
# Option B: Use a CLI environment (dotnet CLI, Docker CLI with the bash shell) and VS Code as plain editor