diff --git a/README.md b/README.md index e87d2286..2328dbe6 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,11 @@ In some cases it may be useful to have your own marketplace. Maybe you need to c npm run seed -- -u=YOUR_PORTAL_USERNAME -p=YOUR_PORTAL_PASSWORD -n=YOUR_MARKETPLACE_NAME ``` -Next, find the admin client ID and set it as NEXT_PUBLIC_OC_CLIENT_ID in your .env file. +Next, find the admin client ID and set it as NEXT_PUBLIC_OC_CLIENT_ID in your .env.local file. -Finally log in as `initialadminuser` with the password `Testingsetup123!` +Then, run the application by running `npm run dev`. + +Finally, log in as `initialadminuser` with the password `Testingsetup123!` ### Unit Tests This project uses [Jest](https://jestjs.io/) for unit testing. To write a unit test: diff --git a/package-lock.json b/package-lock.json index 12c2e41f..50f42555 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "yup": "^0.32.11" }, "devDependencies": { - "@ordercloud/seeding": "^1.0.31", + "@ordercloud/seeding": "^1.1.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/date-fns": "^2.6.0", @@ -2855,23 +2855,23 @@ } }, "node_modules/@ordercloud/portal-javascript-sdk": { - "version": "0.0.1-beta.19", - "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.19.tgz", - "integrity": "sha512-YysNBHX2h4DTuQyp7wcpZYVEOlhVy+IDC0tyslxjmCLf9sMaV2/xL6oUHYyo042O1Ijxi9ILDh2pQoAmoMKrKw==", + "version": "0.0.1-beta.33", + "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.33.tgz", + "integrity": "sha512-T6kF+/1OmHy+xOPsLLsZg/LdlyY9FzFFVHdhleBzWFSG4gKdk2GlQVwHEL/kh33lTqCwPddB+iFzy7feoRygnA==", "dev": true, "peerDependencies": { - "axios": ">=0.19.2" + "axios": ">=1.0.0" } }, "node_modules/@ordercloud/seeding": { - "version": "1.0.31", - "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.0.31.tgz", - "integrity": "sha512-0cb9isS6zrZObbHbzg+fxHjDa4u8Y7j3Khhq5hFUdi0bxOnDopfyDL7/QB2KW5GHG4s18qgqJXYFM9BzEBW52Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.1.0.tgz", + "integrity": "sha512-kf+jXF8WjObinhmdaWb6ze7ag2oV1RnDPB+iqeZ3t2F8Otz1cHLd81myouGOYsnZb/Ac1pcS7HkGLPKSz7dwlQ==", "dev": true, "dependencies": { - "@ordercloud/portal-javascript-sdk": "0.0.1-beta.19", + "@ordercloud/portal-javascript-sdk": "0.0.1-beta.33", "@types/jwt-decode": "^3.1.0", - "axios": "^0.21.1", + "axios": "^1.1.3", "bottleneck": "^2.19.5", "chalk": "^4.1.1", "cli-progress": "^3.11.2", @@ -2880,7 +2880,7 @@ "js-yaml": "^4.0.0", "jwt-decode": "^3.1.2", "lodash": "^4.17.21", - "ordercloud-javascript-sdk": "^4.8.8", + "ordercloud-javascript-sdk": "^5.0.3", "qs": "^6.9.6", "typescript": "^4.2.3", "yargs": "^15.4.1" @@ -2889,27 +2889,6 @@ "seeding": "dist/cli.js" } }, - "node_modules/@ordercloud/seeding/node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dev": true, - "dependencies": { - "follow-redirects": "^1.14.0" - } - }, - "node_modules/@ordercloud/seeding/node_modules/ordercloud-javascript-sdk": { - "version": "4.11.1", - "resolved": "https://registry.npmjs.org/ordercloud-javascript-sdk/-/ordercloud-javascript-sdk-4.11.1.tgz", - "integrity": "sha512-93bQI4x6Qw2s2T1o6X0IpOodS1f6f1vElIu1qlUiC8sRAAQDH1298twrMhaq0iI9zpRZhmkSR3QgQ7AAX+SDZA==", - "dev": true, - "engines": { - "node": ">=0.10" - }, - "peerDependencies": { - "axios": "^0.19.2" - } - }, "node_modules/@pkgr/utils": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.3.1.tgz", @@ -14601,21 +14580,21 @@ } }, "@ordercloud/portal-javascript-sdk": { - "version": "0.0.1-beta.19", - "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.19.tgz", - "integrity": "sha512-YysNBHX2h4DTuQyp7wcpZYVEOlhVy+IDC0tyslxjmCLf9sMaV2/xL6oUHYyo042O1Ijxi9ILDh2pQoAmoMKrKw==", + "version": "0.0.1-beta.33", + "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.33.tgz", + "integrity": "sha512-T6kF+/1OmHy+xOPsLLsZg/LdlyY9FzFFVHdhleBzWFSG4gKdk2GlQVwHEL/kh33lTqCwPddB+iFzy7feoRygnA==", "dev": true, "requires": {} }, "@ordercloud/seeding": { - "version": "1.0.31", - "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.0.31.tgz", - "integrity": "sha512-0cb9isS6zrZObbHbzg+fxHjDa4u8Y7j3Khhq5hFUdi0bxOnDopfyDL7/QB2KW5GHG4s18qgqJXYFM9BzEBW52Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.1.0.tgz", + "integrity": "sha512-kf+jXF8WjObinhmdaWb6ze7ag2oV1RnDPB+iqeZ3t2F8Otz1cHLd81myouGOYsnZb/Ac1pcS7HkGLPKSz7dwlQ==", "dev": true, "requires": { - "@ordercloud/portal-javascript-sdk": "0.0.1-beta.19", + "@ordercloud/portal-javascript-sdk": "0.0.1-beta.33", "@types/jwt-decode": "^3.1.0", - "axios": "^0.21.1", + "axios": "^1.1.3", "bottleneck": "^2.19.5", "chalk": "^4.1.1", "cli-progress": "^3.11.2", @@ -14624,28 +14603,10 @@ "js-yaml": "^4.0.0", "jwt-decode": "^3.1.2", "lodash": "^4.17.21", - "ordercloud-javascript-sdk": "^4.8.8", + "ordercloud-javascript-sdk": "^5.0.3", "qs": "^6.9.6", "typescript": "^4.2.3", "yargs": "^15.4.1" - }, - "dependencies": { - "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dev": true, - "requires": { - "follow-redirects": "^1.14.0" - } - }, - "ordercloud-javascript-sdk": { - "version": "4.11.1", - "resolved": "https://registry.npmjs.org/ordercloud-javascript-sdk/-/ordercloud-javascript-sdk-4.11.1.tgz", - "integrity": "sha512-93bQI4x6Qw2s2T1o6X0IpOodS1f6f1vElIu1qlUiC8sRAAQDH1298twrMhaq0iI9zpRZhmkSR3QgQ7AAX+SDZA==", - "dev": true, - "requires": {} - } } }, "@pkgr/utils": { diff --git a/package.json b/package.json index 07cbf45a..d47aedb4 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "yup": "^0.32.11" }, "devDependencies": { - "@ordercloud/seeding": "^1.0.31", + "@ordercloud/seeding": "^1.1.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/date-fns": "^2.6.0",