E-commerce app with Nuxt and Cosmic JS. Payments processed by Stripe.
Get your Bucket slug and read key after logging in to Cosmic JS and going to Bucket > Settings > API Keys. Set these in the nuxt.config.js
file.
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn run dev
# build for production and launch server
$ yarn run build
$ yarn start
# generate static project
$ yarn run generate
For detailed explanation on how things work, checkout Nuxt.js docs.