Automating the creation of Shopify stores with Xata
Tags: shopify, database, javascript, frontend
Published: 2023-12-14 15:00:07


[Katriel Lucas](https://github.com/katriellucas) is a self taught, full stack developer out of Brazil who favors [SvelteKit](https://kit.svelte.dev/), [Astro](https://astro.build/) and serverless tools. He and the team at [Loja De Dropshipping Oficial](https://lojadedropshipping.com.br/) are looking to remove the technological barrier for any small business that wants to make a web store.

## Making Shopify even more accessible

[Shopify](https://www.shopify.com/), a platform that millions of entrepreneurs choose to build their business, operates in a market where approximately [23% of all online sales are fulfilled through dropshipping](https://marketsplash.com/dropshipping-statistics/) (MarketSplash, 2023). Their platform is wonderful for digital natives, but still requires you to have some technical knowledge to build a good store front and connect the dots. Katriel and Loja De Dropshipping Oficial (LDO) are looking to make the benefits of Shopify accessible to absolutely everyone.

How are they planning to do this? By automating the creation of Shopify stores. Simply provide some information about your business and their solution will create a customized website for you that includes customer tracking, production statistics, and more.

![Shopify store creation volume](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rwhqk5f5ij3dc8pofb30.png)

## Serverless for the win

Their solution is built on a modern serverless architecture with [SvelteKit](https://kit.svelte.dev/), [TypeScript](https://www.typescriptlang.org/), [Cloudflare Workers](https://workers.cloudflare.com/) and Xata as the chosen tech stack. Each customer gets their own table in Xata.

Katriel initially came across Xata while searching for a serverless database to begin developing LDO's MVP. Xata was chosen because of the vertically integrated experience and generous free tier. What was originally meant to only be used for a prototype, eventually made its way to production because of the reliability and performance seen during the development phase.

![Chat experience for store creation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yw5huykjtybxo91jkjsw.png)

LDO leverages Xata to extend and better facilitate Shopify's personalization capabilities. When a customer buys the LDO services, a large JSON object is automatically created. The JSON object created for each customer includes details like email, phone number, Brazilian ID, address, product data, and order status, among others. As customers personalize their shop through the chat interface, they input specific details such as credentials, logos, URL, name, color schemes, etc. This facilitates in shop customization and also gathers feedback for continuous improvement. Additionally, data on LDO agents’ responsiveness and efficiency in helping with shop creation is collected, enhancing overall service quality and refining the user experience.

All data, ranging from shop metadata and user permissions to business logos and agent productivity metrics, is stored directly in Xata. Xata powers the entire application and all customizable aspects of the stores.

![Store checker](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/amr13lwkpu7hj3yip09t.png)

> There were a lot of things that Xata solved for us. Our app is divided into three parts. The shop profile with customer information, time series data for sales metrics, and the images for the shop itself. All three use cases use only one database, Xata.\
> _Katriel Lucas - Full Stack Developer_

Katriel, [Dymas](https://github.com/dymas), [Heron](https://github.com/HeronNepomuceno), and the rest of the team at LDO are building out a new solution that lowers the barrier of entry for any store owner or entrepreneur to have an online presence. In addition to their automated approach to shop creation, the company also offers courses and mentoring to help people start a dropshipping business. Teaching their customers proven strategies that tend to convert more.

Their success is already taking off and it’s tied directly to the speed at which they can introduce new features and provide value to their customers. Having a modern, serverless architecture empowers them to do much more with a smaller team.

## Feedback and feature requests

As the conversation steered towards what’s next, we asked Katriel to share some of his favorite parts about Xata and where he thinks we can improve. Here were some of the reasons Katriel chose Xata for this application.

- **TypeScript SDK.** The TypeScript SDK is very easy to get started with and made development much quicker for Katriel and his team.
- **Zero Ops.** There is no need to manage a database or infrastructure. This was huge for them because they could focus on the application and customer needs.
- **File attachments.** File attachments really reduced the amount of tools we needed for image uploads and the logo definition process. The out of the box transformations were killer.

When asked what he’d like to see from Xata, here’s what Katriel shared.

- **Serverless functions.** Cloudflare is the only other service required to make this solution possible. If Xata supported serverless functions, they could consolidate all their tools.

## Share your Xata story

Do you have a similar story or community contribution you’d like to share? [Send us an email](mailto:communityspotlight@xata.io) or ping us on [Discord](https://xata.io/discord) if you’d like to be featured in our community spotlight. Until then, happy building 🦋