DEV Community

Cover image for Building An E-Commerce Store With NextJS

Building An E-Commerce Store With NextJS

Emil Pearce on June 04, 2024

In this tutorial, you'll learn how to build an e-commerce store where customers can purchase products and make payments via Stripe. After a success...
Collapse
 
tpoisson805 profile image
Tim Poisson

Just curious why you would name your login function handleGoogleSignIn() when you are using GitHub auth? Would it not make more sense to use a name that includes GitHub for better clarity?

Collapse
 
empe profile image
Emil Pearce

You are absolutely right! @tpoisson805

I've used this auth function with Google in another project and forgot to change the name. 😅

Collapse
 
devyaz profile image
devyaz

So what is Novu? What can you do with Novu, Novu vs Appwrite, whats the difference/similarities

Collapse
 
empe profile image
Emil Pearce

Hey @devyaz!

Both Novu and Appwrite are powerful tools, but they serve different primary purposes.

Appwrite is a backend-as-a-service (BaaS) platform that provides a set of building blocks for web, mobile, and Flutter applications. (Like Firebase)

Novu is specifically designed for notification management, focusing on delivering messages to users across multiple channels.

Using both platforms together can be beneficial: Appwrite can handle user management and other backend tasks, while Novu manages notifications.

Similarities

  • Open-source: Both platforms are open-source, offering flexibility and customization.
  • API-driven: They both provide APIs for interacting with their features.

Differences

  • Core functionality: Appwrite is a comprehensive backend platform, while Novu specializes in notifications.
  • Features: Appwrite offers a broad range of features for building backend infrastructure, while Novu focuses on notification-related functionalities.

To put it simply, integrating Novu for notifications is like integrating Stripe for payments. With Stripe, you avoid the complexities of processing and storing users' credit card information.

Similarly, with Novu, you avoid the hassle of building and maintaining notification workflows, user preferences, and integrations with providers like SMS, Email, WhatsApp, and Slack. Just add Novu, and you're set!

I hope it makes more sense now..

Collapse
 
devyaz profile image
devyaz

So much! Thank you! Ill look into Novu

Thread Thread
 
devyaz profile image
devyaz

Last question, is Novu only for react/NextJs only? Cant we use plain typescript or Javascript with Express?

Collapse
 
dhruv_verma_e344c639e7538 profile image
Dhruv Verma

I would like to add you can replace localhost to constant APP_URL based on production and development environment.

Collapse
 
nevodavid profile image
Nevo David

Novu Echo is fantastic!
I wonder how good is the typing once you use the client :)

Collapse
 
empe profile image
Emil Pearce

You can always test it out! Hehe

Collapse
 
devyaz profile image
devyaz

this is cool am sharing

Collapse
 
empe profile image
Emil Pearce

Thank you!

Collapse
 
unicodeveloper profile image
Prosper Otemuyiwa

Thanks for teaching me how to build an ecommerce store with ease!

Collapse
 
empe profile image
Emil Pearce

Ahaha thanks!

Collapse
 
gal_tidhar_e93f7847d6ce6a profile image
Gal Tidhar

Awesome, will share

Collapse
 
empe profile image
Emil Pearce

Thank you very much Gal!