# Ecommerce MERN stack done

**URL:** <https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230>\
**Category:** I Built This\
**Created:** [October 26, 2018, 11:19am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230 "2018-10-26T11:19:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [October 26, 2018, 11:19am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/1 "2018-10-26T11:19:18Z")

</div>

// ------------------------------------------- Archived

---

<div class="post-metadata">

**Author:** ![sorinr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sorinr/32/87166_2.png) [@sorinr](https://forum.freecodecamp.org/u/sorinr)\
**Post date:** [October 26, 2018, 11:47am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/2 "2018-10-26T11:47:38Z")

</div>

Taking a first glance at the interface i noticed that your categories filter is displayed as a radio button instead as of a checkbox collection.

When I see this:  
 ![categories%20filter](https://global.discourse-cdn.com/freecodecamp/original/3X/f/9/f965b82d5e6bf1c7a2e9674b359fb28533fc119b.png)  
i expect to function like radio buttons. Think you have used the wrong display representation on page.  
If you take out the `p-round` class from `<div class="pretty p-default p-round p-smooth">` the checkboxes will look more natural.

---

<div class="post-metadata">

**Author:** ![sorinr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sorinr/32/87166_2.png) [@sorinr](https://forum.freecodecamp.org/u/sorinr)\
**Post date:** [October 26, 2018, 11:54am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/4 "2018-10-26T11:54:35Z")

</div>

Another thing in terms of UX is the breadcrumb navigation. When I am, lets say, here:

 ![polos%20category](https://global.discourse-cdn.com/freecodecamp/original/3X/4/9/4941ab8cd3000ad5d80974a84d1cbf31d2f4c5ef.png)  
i expect to be able to click on polos and get back right to the polos category not to pass again through home.

---

<div class="post-metadata">

**Author:** ![Gigusek](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Gigusek](https://forum.freecodecamp.org/u/Gigusek)\
**Post date:** [October 26, 2018, 12:31pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/6 "2018-10-26T12:31:56Z")

</div>

Just checked a couple of things:

In the checkout:

1. Make sure to validate the email, so far it passes as long as I finish with a dot, even if I don’t specify the domain extension, like “hello@hello.”
2. Continuing as guest apparently works, but I still need to provide email before it’s clickable. I Imagine you shouldn’t have to?
3. Validate the fields in the shipping, names shouldn’t have numbers, postal code and phone number shouldn’t have letters
4. Implement some dummy payment system, like Stripe’s or Paypal’s sandbox, so it’s easy to test.
5. Implement accounts and auth.
6. Also, problem with showing prices in the order summary: [http://prntscr.com/laqkwz](http://prntscr.com/laqkwz)

// I’m mentioning payments and auth because you said you’re learning MERN, but there doesn’t seem to be much back-end implemented.

---

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [October 26, 2018, 12:45pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/7 "2018-10-26T12:45:48Z")

</div>

thanks, nice. Yeah I am going to do the complete system in back end

---

<div class="post-metadata">

**Author:** ![Pranav50](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pranav50/32/126153_2.png) [@Pranav50](https://forum.freecodecamp.org/u/Pranav50)\
**Post date:** [February 27, 2019, 6:32am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/8 "2019-02-27T06:32:28Z")

</div>

Hello NielsDom, I saw your project and is really awesome. If you don’t mind can you share the code to me, as I would like to contribute changes in your project and add some enhancements.

---

<div class="post-metadata">

**Author:** ![iiio2](https://avatars.discourse-cdn.com/v4/letter/i/838e76/32.png) [@iiio2](https://forum.freecodecamp.org/u/iiio2)\
**Post date:** [February 27, 2019, 6:37am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/9 "2019-02-27T06:37:41Z")

</div>

good job. nice project

---

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [March 1, 2019, 2:00am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/10 "2019-03-01T02:00:11Z")

</div>

Hi, yeah here is the repo:

> **[NielsDom/ecommerce-react](https://github.com/NielsDom/ecommerce-react)**
>
> Ecommerce React.js Node.js Express Mongodb. Contribute to NielsDom/ecommerce-react development by creating an account on GitHub.

The website is running well. But the code is not very beautiful, as it is my first fullstack app.

Here is a cool small app that I made (I got my job thanks to this one): [https://github.com/NielsDom/React-sound-app](https://github.com/NielsDom/React-sound-app)  
(I just tried, not working, maybe api changed)

If you need my help tell me

---

<div class="post-metadata">

**Author:** ![Trent-mack-williams](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Trent-mack-williams](https://forum.freecodecamp.org/u/Trent-mack-williams)\
**Post date:** [October 28, 2019, 7:57pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/11 "2019-10-28T19:57:08Z")

</div>

was there any tutorial that helped build this

---

<div class="post-metadata">

**Author:** ![CareLife](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/carelife/32/119575_2.png) [@CareLife](https://forum.freecodecamp.org/u/CareLife)\
**Post date:** [February 25, 2020, 2:15pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/13 "2020-02-25T14:15:10Z")

</div>

eCommerce? To be honest I don’t really like it. Because it’s hard to use it. For me at least

---

<div class="post-metadata">

**Author:** ![andrescaroc](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/andrescaroc/32/132168_2.png) [@andrescaroc](https://forum.freecodecamp.org/u/andrescaroc)\
**Post date:** [February 25, 2020, 4:07pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/14 "2020-02-25T16:07:28Z")

</div>

@NielsDom It has been four months since your post, I want to focus on e-commerce too, but I have only been learning react for three weeks.

How did your job search outcome?  
What did recruiters tell you about your project?

Inspire us, please!

---

<div class="post-metadata">

**Author:** ![andrescaroc](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/andrescaroc/32/132168_2.png) [@andrescaroc](https://forum.freecodecamp.org/u/andrescaroc)\
**Post date:** [February 25, 2020, 7:49pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/16 "2020-02-25T19:49:07Z")

</div>

> [@NielsDom](#):
>
> The interviewer did not believe I did the project by myself because the code was not very bad and also because I did not commit on this repo since beginning (so it is very important to commit to prove your work…)

Nice tip!

> [@NielsDom](#):
>
> You should focus since beginning on best practices architectures

Can you give me an example and where to check if I am using best practices? I tried to follow FCC for React, but I see on youtube there are other ways to structure components.

> [@NielsDom](#):
>
> Avoid recruiting agencies and HR, speak to the boss directly. If you can show that you get the sh\*t done to the boss, you have high chances to get recruited.

Any hint on how to do this for a remote position?

> [@NielsDom](#):
>
> About react, do not spend too much time on redux. You should now use React hooks, and with react hooks you cannot apply same classic architecture (actions, reducers folders…) Stay simple: put all your states in containers without redux, then later use useReducer + context…

Thanks for the advice, this let me advance to the next topic.

> [@NielsDom](#):
>
> Be 100% focus on code all day long if you want to improve fast, eat, sleep eat, sh\*t code 24h/24h (even today, if I don’t code at evening I feel frustrated, maybe I still got the pressure from 2 years ago haha). If you do not learning new stuff every day it is bad

100% true for me too

> [@NielsDom](#):
>
> You can show me your project when you finish if you want my code review. But believe me you will not finish before 3 months

You are very kind man, I’ll contact you for that.

I just started the drum machine challenge (3rd project of Front-End libraries cert), and my goal is to advance and get full stack certification and skills as fast as possible, and then start coding the e-commerce app and others I have in mind.

What do you think on this approach?  
Or do you think I must stop and build several Front-End apps before getting to node.js, express, mongoDb, etc?

Thanks for your comments and is very nice to see you have a job with a correct salary!

---

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [February 26, 2020, 2:19am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/17 "2020-02-26T02:19:15Z")

</div>

> [@andrescaroc](#):
>
> Can you give me an example and where to check if I am using best practices? I tried to follow FCC for React, but I see on youtube there are other ways to structure components.

Container folder with stateful components, component folder with stateless.

> [@andrescaroc](#):
>
> Any hint on how to do this for a remote position?

I dont know, my writing skill and resume skills are not good, so my only chances I guess was to meet people. To do this, I have participated to tech meetups. It is like lottery, I talk to many people hoping someone would give me opportunity.

> [@andrescaroc](#):
>
> Or do you think I must stop and build several Front-End apps before getting to node.js, express, mongoDb, etc?

I didnt do any FCC projects, or finish any certification. Because I did not have enough time to do it, instead I directly start a ecommerce website and try to solves problems I encountered one by one. I used FCC for basic JS + forums for motivation, which was very helpful.

About drum project, seems to be fun. But in real life chances that you will do pure vanilla JS are low, and a drum machin even lower. Also, there are already many people on market who use vanilla daily on production, those who use jQuery (PHP developers I guess). I find DOM manipulation not pleasant, and React manage it for you automatically, so there is no reason for me to learn it.  
And about advanced algorithms, there are plenty NPM packages to help you.

I would indeed start to learn node, express, mongoose (this ORM manage the mongoDB queries for you) + react, as it would be the technology you would use every day for few years.  
My advice is to learn how to manipulate objects and arrays, map, filter and start a real life project, so that your boss could assimilate to one of his projects.

Maybe my learning advices are bad, but just believe on your convictions and go 100%

---

<div class="post-metadata">

**Author:** ![fsociety00](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fsociety00/32/139062_2.png) [@fsociety00](https://forum.freecodecamp.org/u/fsociety00)\
**Post date:** [March 25, 2020, 7:45pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/19 "2020-03-25T19:45:54Z")

</div>

@NielsDom great project!

I know I’m super late to this but I just finished a demo of my own Ecommerce app and after a few Google searches I ended up here hehe,  
I was wondering how exactly is your client suppose to add/edit/delete products and all of that? I’m working on a dashboard that directly interacts with the Mongodb so I was wondering if you did one aswell

🙂

---

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [March 29, 2020, 7:10pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/20 "2020-03-29T19:10:30Z")

</div>

Cool, you can add/edit/delete on client state and update your database same time.  
On my repo I was lazy, I think I just refreshed the browser when I sent requests to not deal with the state… so it would fetch data again from database, not good to do so.

You can show your project if you want 🙂

---

<div class="post-metadata">

**Author:** ![fsociety00](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fsociety00/32/139062_2.png) [@fsociety00](https://forum.freecodecamp.org/u/fsociety00)\
**Post date:** [March 30, 2020, 5:49pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/21 "2020-03-30T17:49:11Z")

</div>

Oh…  
First of all please excuse my english, it’s not my first language,

By client I meant the actual client, the person/company you are selling the ecommerce to, how are they gonna add/edit/delete new products after you “give” them the website. Do they have to call you each time they want to add new stuff or do you give them some sort of dashboard where they can do it themselves?

> [@NielsDom](#):
>
> You can show your project if you want

Yes I would love some feedback,  
Since I’m from México the website is in spanish but you can always translate the page 🙂

young-mesa-38921[.]herokuapp[.]com/  
(remove square brackets)

---

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [March 31, 2020, 7:06am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/22 "2020-03-31T07:06:39Z")

</div>

I built an admin page where you can update your products:  
[https://demo-react-eco2.herokuapp.com/admin](https://demo-react-eco2.herokuapp.com/admin)

But I don’t sell this, If I would have to do a ecommerce website I would just download a wordpress template. The purpose of this was to train and find a job.

Your website is very beautiful congrates. Recruiters will love it, I am sure.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://forum.freecodecamp.org/u/Osiris)\
**Post date:** [March 31, 2020, 11:29am UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/23 "2020-03-31T11:29:50Z")

</div>

What React UI libraries do you guys use in general? Or you build the whole CSS from scratch?

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://forum.freecodecamp.org/u/Osiris)\
**Post date:** [March 31, 2020, 12:27pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/25 "2020-03-31T12:27:18Z")

</div>

Have you ever tried Ionic? I heard that it s also good, it provides some nice UI elements as well.

---

<div class="post-metadata">

**Author:** ![NielsDom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nielsdom/32/110105_2.png) [@NielsDom](https://forum.freecodecamp.org/u/NielsDom)\
**Post date:** [March 31, 2020, 4:55pm UTC](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230/26 "2020-03-31T16:55:42Z")

</div>

Ionic is not for mobile? If I have to do an app I would use react native not ionic.

[Next page](https://forum.freecodecamp.org/t/ecommerce-mern-stack-done/236230.md?page=2)
