Honest Reviews is an example for developing Swell Apps.
Swell Apps is currently in closed alpha phase, available to select partners. Read more in the alpha documentation.
During alpha and beta phases, you'll install a local copy of the app in your own store using the CLI. This allows you to make changes to the code and help improve things for the community. Pull requests welcome.
- Clone this repository.
- Install the Swelll CLI.
npm install @swell/cli@alpha
- Log in and push the app to your test store.
cd /path/to/honest-reviews-app
swell login
swell app push
Honest Reviews is bundled with a Next.js 14 app that shows how a frontend can integrate with models, fetch data and interact with app functions.
- In the Swell dashboard, navigate to
Developer > API keys
and create a public key with permissions for Honest Reviews. Enter your store ID and public key in/path/to/honest-reviews-app/storefront/.env.local
.
NEXT_PUBLIC_SWELL_STORE_ID=...
NEXT_PUBLIC_SWELL_STORE_KEY=pk_test_...
- Install dependencies and run it locally.
cd storefront/
npm install
npm run dev
The app isn't ready for production use at this time, but should serve as an example with code patterns you can learn from.
Contributions are welcome! Visit the Swell Discord or GitHub discussions to get help and share ideas.
This project is licensed under the MIT License - see LICENSE.md file for details.