Node/Express/MongoDB as an MVC -

MEAN Day 6 (Monday, week 2)

Leibel Hecht
My Coding Journey
2 min readJun 12, 2017

--

The MEAN stack is super flexible, so we can basically swap out any piece or technology in the stack with another. But, that also means that we need to customize a lot ourselves.

Today, we created an MVC structure piece by piece, from scratch. We separated our basic folder structure into client and server. We then added views and static to client and our models and controllers (with routes in a config folder) to our server folder.

We then went back and modularized some of our old MongoDB assignments.

The final assignment of the day was to create a simple API. I particularly enjoyed creating a client side server to make Ajax calls to my API. I though that was pretty cool.

In algorithms, we continued using recursion. (Here is a blog post that I wrote about recursion.) Today’s algorithm was to remove duplicate characters in a string. Here was my solution using 2 functions.

Tomorrow we start Angular! That should be fun. I better go do my reading for so I’m prepared.

Anyway, thanks for reading. See you tomorrow.

--

--

My Coding Journey
My Coding Journey

Published in My Coding Journey

Follow my coding journey and my experience at Coding Dojo in Chicago

Leibel Hecht
Leibel Hecht

Written by Leibel Hecht

I’m Leibel. I’m transitioning from Talmud to Tech. Maybe someday I’ll be the Rabbi on Rails :)