DEV Community

Cover image for Building a Scalable Furniture E-commerce Web API Using .NET Clean Architecture and MongoDB

Building a Scalable Furniture E-commerce Web API Using .NET Clean Architecture and MongoDB

Odumosu Matthew on July 08, 2024

INTRODUCTION In today's digital era, e-commerce has become a vital component of the global economy, enabling businesses to reach a wider...
Collapse
 
kljovenzi profile image
Filip Nikolic

Hey, great content!
When i copy paste Program.cs , i get errors for builder.Services.AddDataDependencies(builder.Configuration);
builder.Services.AddServiceDependencies(builder.Configuration);
Do you happen to know why?

Collapse
 
iamcymentho profile image
Odumosu Matthew

Hi Filip,

Thank you for reaching out and bringing this to my attention. The errors you're encountering when copying Program.cs to the web API project could be due to missing packages or configurations specific to our original setup. It's possible that the methods AddDataDependencies and AddServiceDependencies rely on dependencies not yet installed or configured in the web API project.

I recommend checking if all necessary packages are installed and configurations are correctly set up in the web API project. If the error persists after verifying these aspects, we can then schedule a Google Meet to dive into this further. Please keep me updated on your progress.

Collapse
 
kljovenzi profile image
Filip Nikolic

Hey man, thanks for showing me that.
I ve learned a lot from this project.
Just one more thing i would love to get an answer?
Could you help me with interfaces IEncryptionHelper and IAuthService?
What libraries, packages, did you use to implement this?

Collapse
 
iamcymentho profile image
Odumosu Matthew

.

Collapse
 
salk52 profile image
salk52

Do you maybe have whole source code?

Collapse
 
iamcymentho profile image
Odumosu Matthew

Of course, I do have the whole source code since it's my project.

Collapse
 
salk52 profile image
salk52

Well, then it would be great if you could share link :)

Collapse
 
jangelodev profile image
João Angelo

Hi Odumosu Matthew,
Top, very nice and helpful !
Thanks for sharing.

Collapse
 
iamcymentho profile image
Odumosu Matthew

Thank you for the positive feedback! I'm really pleased to hear that you found it helpful. If there's anything specific you'd like to discuss or any suggestions you have, I'd love to hear them.

Collapse
 
denis333 profile image
denis333 • Edited

I have a question:
why you're rethrowing exceptions in the UserRepository ** class ?
imho it doesn't have any sense, it's even worse when you do **throw ex
//losing the stacktrace info

Collapse
 
kmrjyoti profile image
kmrjyoti

Hello, this article is very nice and helpful. Could you please share the source code link?

Collapse
 
mahendraputra21 profile image
Dewa Mahendra

Thanks this is very helpful :)

Collapse
 
iamcymentho profile image
Odumosu Matthew

I really appreciate your feedback, especially coming from a fellow .NET engineer! If you have any insights or suggestions based on your experience, I'd love to hear them.

Collapse
 
hapalops profile image
hapalops

what about frontend?