MCPcopy Create free account
hub / github.com/auth0/auth0-cli / defaultPortForFramework

Function defaultPortForFramework

internal/cli/quickstarts.go:1394–1413  ·  view source on GitHub ↗

defaultPortForFramework returns the conventional port for a given framework name.

(framework string)

Source from the content-addressed store, hash-verified

1392
1393// defaultPortForFramework returns the conventional port for a given framework name.
1394func defaultPortForFramework(framework string) int {
1395 switch framework {
1396 case "react", "vue", "svelte", "sveltekit", "vanilla-javascript":
1397 return 5173 // Vite default.
1398 case "angular":
1399 return 4200
1400 case "flask", "vanilla-python":
1401 return 5000
1402 case "django":
1403 return 8000
1404 case "laravel":
1405 return 8000
1406 case "java-ee", "vanilla-java", "jhipster":
1407 return 8080
1408 case "aspnet-mvc", "aspnet-owin":
1409 return 5000
1410 default:
1411 return 3000
1412 }
1413}
1414
1415// validateAPIIdentifier returns an error if identifier is not a valid http:// or https:// URL.
1416func validateAPIIdentifier(identifier string) error {

Callers 2

resolveSetupInputsFunction · 0.85

Calls

no outgoing calls

Tested by 1