News for hackers. Stuff that matters.
Re:Show HN: Mini social network that I made as my first MERN... by dfee on Saturday March 07, 2020 @04:54PM (#22514414)
MERN => Mongo, Express, React, NodeJS. Which is an evolution (as far as I can tell on) MEAN => Mongo, Express, Angular, NodeJS.

But really, NodeJS is unnecessary in the acronym, but is used to make a backronym. Really - how do you run Express without NodeJS? Maybe it’s so the backronym wasn’t “MAN”.

Re:Show HN: Mini social network that I made as my first MERN... by yepthatsreality on Saturday March 07, 2020 @07:53PM (#22515459)
Also interesting in comparison to older forms of this style of stack description:

* LAMP - Linux Apache MySQL PHP/Python/Perl

* LEPP - Linux Nginx PostgreSQL PHP/Python/Perl

MEAN and MERN do not specify the OS and swap more open ended possibilities for specific frameworks. I guess LEMJ doesn't roll off the tongue very well.

And while this was submitted with MERN in the title, the README omits Express but mentions Socket.io.

Re:Show HN: Mini social network that I made as my first MERN... by hombre_fatal on Saturday March 07, 2020 @07:37PM (#22515368)
Instead of just validating the extension of the user-uploaded image, you can also determine the image type by looking at the first two bytes of the file.

https://github.com/sdsykes/fastimage/blob/bad902712c146d9fc8...

It's also nice to move those database calls into a db.js module. That way you can reuse them. And it cleans up the route handlers to just business logic.

I didn't read enough code to have any more advice.

Re:Show HN: Mini social network that I made as my first MERN... by SahAssar on Saturday March 07, 2020 @08:04PM (#22515508)
If I might ask: why use MongoDB when the data very relational?
Re:Show HN: Mini social network that I made as my first MERN... by misa012 on Sunday March 08, 2020 @09:37AM (#22517939)
My first project so I had no idea what DB to use
Re:Show HN: Mini social network that I made as my first MERN... by misa012 on Saturday March 07, 2020 @11:16AM (#22512300)
Re:Show HN: Mini social network that I made as my first MERN... by jgalentine007 on Saturday March 07, 2020 @09:32PM (#22515938)
Cool. I noticed the client service methods seem to repeat a lot of the same code / pattern, there is probably a way to simplify it.
Re:Show HN: Mini social network that I made as my first MERN... by philipkiely on Saturday March 07, 2020 @04:23PM (#22514188)
What stacks have you used before MERN, and how did the developer experience for MERN compare to those other tools?
Re:Show HN: Mini social network that I made as my first MERN... by misa012 on Sunday March 08, 2020 @09:38AM (#22517943)
I havent bult anything before this. Just some small programs in node js.
Re:Show HN: Mini social network that I made as my first MERN... by cvaidya1986 on Saturday March 07, 2020 @03:34PM (#22513852)
Congratulations on launching!
Re:Show HN: Mini social network that I made as my first MERN... by misa012 on Sunday March 08, 2020 @09:38AM (#22517947)
thanks!!
Re:Show HN: Mini social network that I made as my first MERN... by stephenmc on Sunday March 08, 2020 @05:30AM (#22517161)
Great domain name!
Re:Show HN: Mini social network that I made as my first MERN... by misa012 on Sunday March 08, 2020 @09:38AM (#22517946)
Thanks!!