SDK environment setup
Describes how to set up the Optimizely Configured Commerce SDK
See the SDK release notes section to learn about current versions and features.
Configure Optimizely NuGet source in Visual Studio
NuGet packages are available on https://nuget.optimizely.com, which does not require authentication.
- Go to Visual Studio > Tools > Options > NuGet Package Manager > Package Sources.
- Click Add:
- Name – Configured Commerce
- Source – https://nuget.optimizely.com/feed/packages.svc
- Restore packages.
Configure the local environment
Open Visual Studio and rebuild the solution.
For SQL, follow these steps:
- Create a database within sql server
- Run
./database/Insite.Commerce.StartingDatabase.sql
against the database. - Optionally run
./database/Insite.Commerce.SampleData.sql
against the database. - Update
./src/InsiteCommerce.Web/config/connectionStrings.config
so it can connect to your new database.
connectionStrings.default.config
is copied toconnectionStrings.config
during a build. If you skipped step 1, you can copy the file manually.
For IIS, follow these steps:
- Add a new site to IIS, pointing to
./src/InsiteCommerce.Web
. - Set up bindings:
- For simple setups, using a non-standard port like 8080 is fine. The site can then be accessed at
http://localhost:8080
. - If dealing with multiple projects, it can help to have them setup with hostnames on port 80:
projectA.local.com
projectB.local.com
This requires entries inc:\Windows\System32\drivers\etc\hosts
:
127.0.0.1
projectA.local.com
127.0.0.1
projectB.local.com
Note
https
is not required.
- For simple setups, using a non-standard port like 8080 is fine. The site can then be accessed at
Once finished with either set of steps, log in to /admin
with the following credentials:
user – admin
password – admin123
Updated 11 months ago