Welcome to our Home Goods Store project! This is an online shopping platform that uses Wix Headless as the back office for managing the store. This project is designed to be your stepping stone to creating your own online store. It's simple, straightforward, and combines various technologies.
This project is more than just an example - it's a starter. The main goal here is to empower you to build your own store. You can set up your store on Wix Headless, manage your products, payments, deliveries, and more. Feel free to modify the design or the application however you see fit!
- Wix eComm, Redirects, SDK, Stores: Wix libraries used for various CMS functionalities in the app.
- Remix: React framework for server-side rendering and routing.
- Vite: Serves as the front-end development environment.
- Framer Motion: A simple yet powerful motion library for React.
- Classnames: Assists in assigning multiple classes to elements.
- SWR: Handles caching content in the client app, fetching new content periodically, and providing a simple API between the content cache and React components.
- Sass: Facilitates writing scoped CSS.
- Faker: Generates mock content for boards and tests.
- JS Cookie: A simple, lightweight JS API for handling cookies.
- Clone the repository in Codux and run the automated installation script.
- Create your Wix Headless project and copy your client ID from Settings > Headless Settings > OAuth apps.
- Copy and rename .env.template to
.env
- Replace the current key in the newly created
.env
file in Codux with your headless site client ID. - Replace the current key in the Codux Config file in
previewConfiguration > environmentVariables
section with your headless site client ID.
Now all you have to do is deploy your Remix app and manage your store through Wix!
You can categorize your products in a headless CMS back-office. Once product categories are added, they will appear in the filter section on the product category page.
You can then update the links in the site’s header, footer, and homepage to point to the new categories.
Most of our boards are wrapped in a context provider that returns mock data (using Faker) instead of fetching it from Wix Headless. We do this for a few reasons:
- It allows us to test and design components without adding data in Wix Headless (or anywhere else).
- It allows us to create boards for different scenarios: very long text, very short text, different numbers of items, etc.
- We can use our boards in tests.
Boards often require a rendering environment that serves as a context for components, providing the necessary wrappers for data providers, routers, and styles that are external to the component itself. This environment ensures that all components can be visually edited and interacted with as intended. Codux empowers users to create custom templates for their projects, which serve as a foundation for new boards. These board templates are designed to include all the essential elements a user might need, ensuring consistency and adherence to design intentions.
The project comes with board templates that include connections to test data or real data, and components or pages.
Happy coding!