can i build shopify public app authentication using vuejs

sanketJ
Shopify Partner
18 0 1

can i build shopify store using vue js

Replies 6 (6)
sillycube
Shopify Partner
693 16 101

No, the auth happens on the server-side but not the client-side.

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
sanketJ
Shopify Partner
18 0 1

i am using this code in vuejs 

 

axios.get('/shopify', (req, res) => {
            const state = nonce()
            const store = this.step4.shopifyStore
            const redirectUrl = config.shopifyForwardUri + '/shopify/callback'
            const installUrl = 'https://' + store + '/admin/oauth/authorize?client_id=' + config.shopifyApi + '&scope=' + config.shopifyScope + '&redirect_uri=' + redirectUrl + '&state=' + state
            res.redirect(installUrl)
})

 

but i received 404 error nd in server side i am using nodejs so can i do this in node js

sillycube
Shopify Partner
693 16 101

Just use the Shopify CLI to scaffold a new skeleton if you use node. 

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
sanketJ
Shopify Partner
18 0 1

do you have any example ?? because i don't know how to perform this

sillycube
Shopify Partner
693 16 101
https://shopify.dev/apps/tools/cli
BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
sanketJ
Shopify Partner
18 0 1

i follow this but i am working on linux that's why i can understand