How to Build a Simple Personal E-Commerce Site

0
3
Asked By CreativeCoder42 On

Hey there! I'm looking to build a small personal e-commerce website where I can sell 1 or 2 products. I've got over 6 years of experience as a front-end developer, mainly with Angular and React. My goal isn't just to sell, but also to improve my skills and create something of my own. I'm interested in using Astro and Vercel for this project since they seem straightforward with tools like Copilot making it more manageable. However, I'm a bit lost when it comes to handling the backend aspects like payments, invoices, shipping, and bot protection. I want to keep the site mostly static, allowing users to purchase easily. Ideally, I'd like to avoid complex platforms like WooCommerce or Shopify. Do you think this approach is practical and sustainable?

1 Answer

Answered By PaymentGuru99 On

For payments, you might want to consider Stripe. Their documentation is top-notch and they handle a lot of the heavy lifting, which means you don’t necessarily need a traditional backend. They even have checkout sessions that work really well with static sites like yours. If you're only selling a couple of products, you might not need a database; you could just hardcode the product details in your Astro components or use Airtable or a simple JSON file to manage inventory. If you ever find you need a database later, Vercel is compatible with PlanetScale or Supabase. For shipping, it will depend on your location, but most postal services have APIs you can leverage. As for bot protection, Vercel has built-in measures, plus you could integrate Cloudflare for some extra security. Overall, Astro and Vercel are solid choices for this kind of setup!

EcomNinja30 -

Thanks for the tips! So if I'm getting this right, once a payment goes through and the customer selects their shipping info, I need some sort of notification to me, right? Like, I’ll need info about the purchase, payment, and need to send them an invoice. Is that the essential part of managing this e-commerce process?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.