Ecommerce sites are among the most popular and visited platforms on the Internet. There are many technologies available to create ecommerce platforms, and knowing how to build one is a critical skill to have in the IT world. While starting a new ecommerce project from scratch is good for learning purposes, isn't there a ready-made, more reliable solution for developers and their businesses? This is where the ApostropheCMS Ecommerce Starter Kit comes into play!
In this article, you will find out why building an ecommerce site from the ground up may not be the best approach. You will then explore an alternative and more effective method of kicking off an ecommerce site project thanks to the ApostropheCMS Ecommerce Starter Kit.
Why You Should Not Build an Ecommerce Platform From Scratch
Suppose you want to create an ecommerce site with popular technologies like Next.js, Vue.js, Laravel, or Angular. To have more control over the project, you may prefer to start from the ground up. Well, there are three major challenges if you want to go that route:
Development time and costs: Creating a robust ecommerce solution requires product, tag, and category management, content filtering, offers handling, and more. To implement those features, be prepared to invest dozens, if not hundreds, of hours in coding. That implies a significant financial investment in the project, without a guarantee of success.
Maintainability concerns: Completing the project and deploying it online is just the beginning. Maintaining a custom solution can be complex, requiring meticulous attention to updates, security patches, and industry standards.
Content management complexity: Most JavaScript framework allows you to present data nicely and crafting interactive pages, but what tools will you use for content management? Developing a user-friendly content management system (CMS) is a daunting challenge in itself. You could opt for a serves as an open-source template for initializing a new JavaScript ecommerce project. In detail, the starter kit generates an ApostropheCMS project that provides all the features developers and content managers need to build an ecommerce platform.
If you are not familiar with that technology, .
Thanks to the ApostropheCMS core, the ecommerce starter kit speeds up the creation of a fully functional ecommerce JavaScript project with advanced content management capabilities, a focus on user experience, and a clear path for further development. Thus, it gives content managers the ability to define tags, products, and categories and use them to design engaging ecommerce pages through a useful set of built-in widgets.
In other words, the Ecommerce Starter Kit for ApostropheCMS equips editors, marketers, and developers with everything they need to create an efficient, effective, eye-catching ecommerce platform that delivers a high-quality user experience to customers.
This starter Kit has been created by for styling, with no additional CSS files. These components are organized in macros and fragments coming from the default server-side template engine to create a full-featured ecommerce site in minutes.
You can find the complete documentation on how to get the most out of this starter kit below:
Let’s dive in!
Set Up an Ecommerce Starter Project
Keep in mind that the Ecommerce Starter Kit for ApostropheCMS is not designed to be installed into an existing project. So, you will have to create a new project from scratch. Before getting started, make sure to meet the .
Run the local development server with:
CODEnpm run dev
Visit the login page at
http://localhost:3000/loginand use the credentials you set up earlier to log in as an admin. This is what you should be seeing:
:
Content Tag: A label to describe products and product categories.
Product Category: A set of tags.
Product: An item for sale in the ecommerce platform.
Since the project's
You will reach the following form:
Note that a product category can either correspond to a single tag or cover multiple tags. Thus, you could define the category “Shoes” that corresponds to the tag “Shoes” as well as the category “Accessories” for the tags “Bracelets” and “Necklaces.” By default, the category page associated will automatically show only products that have at least one tag in common among the selected ones.
In the “Page” tab, you can add UI elements that will appear at the top or the bottom of the specific product page (e.g., a call to action or a promo). Instead, the “SEO” and “Open Graph” tabs allow you to specify information for internal search and search engine indexing.
Once you are done, click “Publish” to create a new category for your product. Repeat the procedure to add as many product categories as you need.
You are finally ready to add some products! Open the “Content” menu, select “Products,” and then click on “New Product.” As you can see from the GIF below, the product form allows you to enter a lot of useful information:
.
When you are satisfied with the data you have entered, press “Publish” to make the product public. To add new products, perform this procedure again.
Great! You now know how to handle content on your ecommerce site.
Create the Essential Pages
The first step to making your ecommerce site work properly is to add a product page. That is nothing more than a landing page to show all the products in your online store. To create it, click “Pages” in the upper left corner, then press the “New Page” button on the right, and add a new page of the type “Product:”
Give your product page a title and a unique slug and click the “Publish” button. By default, the product page will show a list of all your products. If you want to add extra elements at the bottom of the page, you can do it through the rich-text field “Content,” but that is optional. In detail, the ApostropheCMS ecommerce starter pack comes with a set of widgets specifically designed for an online store:
to learn how these widgets work and what they offer.
After publishing the product page, you are ready to explore it and see how it presents the list of all your products. Suppose the product page you just created has products as its slug page. To open it, visit
http://localhost/3000/productsin your browser. This is what you will see:
Note that it automatically presents all the information you provided for the product in a visually appealing way.
Amazing, the ecommerce store is starting to come alive!
If your ecommerce site uses categories, you will also need to define a category page. To do so, create a new page of type “Product Category." This will automatically show a list of the available product categories:
.
Populating the Home Page
Your ecommerce site is starting to take shape, but the home page is still completely blank. Time to fix that!
Visit
http://localhost:3000and click the “Edit” button on the right to enter the ApostropheCMS in-context live editing mode:
For example, you could add a hero section, followed by a list of the latest products added to the site, followed by a promo and the list of categories as below:
You might use this feature to add an “About Us” page or some landing pages. For example, you could create the following landing page to promote your summer collection:
.
Customize Your Ecommerce Site
Your ecommerce platform only requires the finishing touches. Get ready to make your ApostropheCMS ecommerce site unique!
Click on the gear icon at the top right to open the global site settings:
You can also enable the search feature by choosing the “Page” type and selecting the “Search” page
That allows users to find pages based on the content of the “SEO — Description” field or “Tagline” field:
Note the new logo, navigation menu, and how the palette has changed from aquamarine to purple.
Do not forget that all ecommerce components are styled via Tailwind. You can find the Tailwind configuration in
tailwind.config.jsfile in the root folder of the project. Refer to the official .
For more branding and UI customizations, follow the instructions in the .
Integrate a payment system platform: Add a secure payment system platform that supports several payment methods such as Stripe or Braintree.
ApostropheCMS has proven to be a modern and efficient solution to help businesses build ecommerce sites. This is just a taste of what that technology can do. Explore Apostrophe today!
SOCIAL SHARE CARD GENERATOR