I have installed everything needed for magento-2 to run on xampp on windows.
php.ini is also edited properly and have enabled all the extensions needed.
When I try to run the localhost/magento link i get the error in browser,
1 exception(s):
Exception #0 (DomainException): The default website isn't defined. Set the website and try again.
<pre>#1 MagentoStoreModelStoreResolverWebsite->getAllowedStoreIds() called at [vendormagentomodule-storeModelStoresData.php:67]
#2 MagentoStoreModelStoresData->getStoresData() called at [vendormagentomodule-storeModelStoreResolver.php:138]
#3 MagentoStoreModelStoreResolver->getStoresData() called at [vendormagentomodule-storeModelStoreResolver.php:97]
#4 MagentoStoreModelStoreResolver->getCurrentStoreId() called at [vendormagentomodule-storeModelStoreManager.php:160]
#5 MagentoStoreModelStoreManager->getStore() called at [generatedcodeMagentoStoreModelStoreManagerInterfaceProxy.php:119]
#6 MagentoStoreModelStoreManagerInterfaceProxy->getStore() called at [vendormagentomodule-storeModelResolverStore.php:30]
#7 MagentoStoreModelResolverStore->getScope() called at [vendormagentoframeworkAppConfigScopeCodeResolver.php:49]
#8 MagentoFrameworkAppConfigScopeCodeResolver->resolve() called at [vendormagentoframeworkAppConfig.php:69]
#9 MagentoFrameworkAppConfig->getValue() called at [vendormagentomodule-backendAppAreaFrontNameResolver.php:123]
#10 MagentoBackendAppAreaFrontNameResolver->isHostBackend() called at [vendormagentomodule-backendAppAreaFrontNameResolver.php:106]
#11 MagentoBackendAppAreaFrontNameResolver->getFrontName() called at [vendormagentoframeworkAppAreaList.php:73]
#12 MagentoFrameworkAppAreaList->getCodeByFrontName() called at [vendormagentoframeworkAppHttp.php:111]
#13 MagentoFrameworkAppHttp->launch() called at [vendormagentoframeworkAppBootstrap.php:264]
#14 MagentoFrameworkAppBootstrap->run() called at [pubindex.php:30]
</pre>
I have surfed over internet everywhere, tried installing everything again, changed versions also but no luck.
can anyone guide me on this topic.