Skip to content

Commit a66d3b2

Browse files
committed
feat: enhance initialization output with project navigation commands and update API URL in environment settings
1 parent 9125758 commit a66d3b2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Spiderly.CLI/Commands/InitCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ public static async Task<int> Execute(bool isRunningFromNuget, string version, s
174174
{
175175
ConsoleHelper.MarkupLineOK("App initialized successfully. Continue with the [blue]Open the Project[/] step in the documentation: [link]https://www.spiderly.dev/docs/getting-started#open-the-project[/]");
176176
Console.WriteLine();
177+
AnsiConsole.MarkupLine($"cd [blue]{appName.ToKebabCase()}[/]");
178+
AnsiConsole.MarkupLine("code .");
179+
Console.WriteLine();
177180

178181
return 0;
179182
}

Spiderly.Shared/Helpers/NetAndAngularFilesGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3920,6 +3920,7 @@ private static string GetLaunchJsonData(string appName)
39203920
"args": [],
39213921
"cwd": "${workspaceFolder}/Backend/{{appName}}.WebAPI",
39223922
"stopAtEntry": false,
3923+
"launchSettingsProfile": "http",
39233924
"env": {
39243925
"ASPNETCORE_ENVIRONMENT": "Development"
39253926
},
@@ -4374,7 +4375,7 @@ private static string GetEnvironmentTsData(string appName)
43744375
return $$"""
43754376
export const environment = {
43764377
production: false,
4377-
apiUrl: 'https://localhost:44388/api',
4378+
apiUrl: 'http://localhost:5000/api',
43784379
frontendUrl: 'http://localhost:4200',
43794380
GoogleClientId: 'xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com',
43804381
companyName: '{{appName}}',

0 commit comments

Comments
 (0)