- Ask to be added to the repository on Github and to the shopify partner account.
- Setup a development store for yourself in the shopify partners account.
- Clone the repository.
- Run:
~/ $ yarn
- Install the Shopify-App-CLI.
- Install PostgreSQL
- Enable the
citext
PostgreSQL extension:
psql
\c template1
CREATE EXTENSION citext;
- Run
createdb salestorm && createdb salestorm_shadow
to create your development databases - Ask a developer for a copy of the
.env
file where various API keys and settings are stored. - Run:
~/ $ shopify app connect
- Select your account and your dev store.
- Run:
~/ $ yarn run serve
- Open the app URL shown in the output. The first time you do this Chrome will complain about an invalid certificate, to circumvent this type "thisisunsafe" and Chrome will remember to trust the local certificate.
Note: If you get any problem loading the startup script or the app in the admin panel try to refresh the page or try to access https://loop.rebelzcommerce.com and type again "thisisunsafe".
-
Write your test SQL statement into the file 'current.sql'
-
To test the SQL statement run:
~/ $ yarn run graphile watch
- When finished testing your SQL statement you need to create a migration file with this command:
~/ $ yarn run graphile commit
- Run the migrations and test on shopify with:
~/ $ yarn run serve
1.) Clone the animate.css repo
~/ $ git clone [email protected]:animate-css/animate.css.git
2.)
~/ $ cd animate.css/source
3.) Modify the @imports in the /source/animate.css file according to your needs;
4.)
~/ $ cd .. && yarn start
4.) Copy the content without comments of animate.min.css into the get_styles js file.
- Connect to the right dev store with the right account
shopify connect
- Run the server again and choose 'Yes' when the cli asks to update the Application URL
yarn run serve
-
Check the status of the shopify system: shopifystatus.com status.shopify.com
-
Make sure you are currently logged in into the store backend. For development stores, you have to login via the Partner dashboard.
-
If any API endpoint gives you a 403, check if you set the right SCOPES ENV and are allowed to access that resource.
We currently have to check the database manually to figure out why. If it should be shown according to the database, trigger the popup in the storefront and check the Javascript console.
Also possible is that the users internet is too slow and our popup isn't ready to be displayed yet, as not all data is received yet.
It could be that the current displayed currency in the merchants storefront is not used in the popup. In such a case you need to investigate how to get the current three digit currency code applied by other JS in the merchant store. The solution could be to find a global defined 'currency' variabe where the current Currency code is stored or to check the localStorage of the storefront. As soon as you've found where the current displayed currency code is stored you need to assign it to our global variable like this:
window.Salestorm.currentCurrencyCode = localStorage.getItem('currentDisplayedCurrencyCode')
graphQLErrors.forEach is not a function : The offline accessToken of the store is missing therefore no graphql client could be created.
get-matching-campaign could fail if you switch dev store. Run:
shopify connect
and connect to the right store.