This project allows you to:
- register shopify stores via a Private App api_key/password pair
- view those stores' products
- edit product titles and descriptions.
Written assuming sqlite database, see .env.example (/PATH/TO/DB/)
- Clone repository
composer install
- Copy .env.example to .env
- Fill in DB_DATABASE (.env) with a path to the sqlite file
php artisan key:generate
php artisan migrate
php artisan serve
You will need a private app with READ/WRITE on products for any shopify store. If you do not have a suitable development store, I can provide one.
- Register an account through the frontend.
- From the dashboard, select "Add Store"
- Fill in Private App details. Shopify Store URL should be in format "{store}.myshopify.com"
- Select Register Store - if successful you will be redirected to the dashboard and will now see the store there.
- Most common errors would be incorrect shopify store url OR store already added for a different user.
- Select Products for the newly added store, you should now see a list of products.
- You can click "Shopify" for a tab to be opened direciting to the shopify admin page for the product (assuming you are logged in on the Shopify)
- You can click "Details" to see title, desc and variants.
- On the details page Title and Description are editable, clicking save will change the information in Shopify.
After you have registered a user through the frontend, you will see an API Token on the dashboard. This can be used to access the RESTAPI.
Token can be passed as a Bearer
token.
/api/user GET
Load current user
/api/stores GET
Load currently registered shopify stores
/api/store POST
Register a new shopify store