It is possible to create a project directory using hasura init with a non URL value for key endpoint.
We don't have a check in place to validate that the given endpoint is a valid URL or not. https://github.com/hasura/graphql-engine/blob/master/cli/commands/init.go#L185