JavaScript Building a MEAN Application Introduction to the MEAN Stack Setting Up an Express Application

Christopher Parke
Christopher Parke
21,977 Points

What is the follow along part??

I don't understand why there is a part for following along to a video when generally playing a video allows you to follow along.

"Follow Along

To follow along commiting your changes to this course, you'll need to fork the Building a MEAN Application repo. Then you can clone, commit, and push your changes to your fork like this:

git clone <your-fork> cd mean-todo git checkout tags/s1v3 -b setting-up-an-express-application After you've made changes to the application, you can commit and push your changes like this:

git commit -am "my awesome changes" git push origin setting-up-an-express-application"


These instructions are completely different from the video. I've restarted this project about 12 times (no exaggeration) and have been working on it 8 days. I just can't seem to get express installed as well as nodemon and have the app come up.

I've tried following both sets of instructions, and various ways of mixing the instructions together. I somehow managed to break my ability to use node modules at all on this computer because of something called environment variables.

My only success so far is that if I am in the root of C:\ I can run nodemon and it somehow finds the file path which is E:\GitHub\Projects\mean-todo\src\app.js and runs. but no matter what I put in the app.js --even when I clone the finished version of this script from GitHub, I only get "Cannot GET /"

Is anyone else having this kind of trouble? I don't understand why anyone would want to spend hours and hours setting up the environment to make a web-page. I'm just really missing the point of how this is supposed to be "rapid development".

Any help would be great.

Thanks.

3 Answers

Christopher Parke
Christopher Parke
21,977 Points

When I try to install nodemon I get this:

E:\GitHub\Projects\mean-todo [master +0 ~1 -0 !]> npm install -g nodemon npm WARN optional dep failed, continuing fsevents@1.0.15 C:\Users\Christopher\AppData\Roaming\npm\nodemon -> C:\Users\Christopher\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js nodemon@1.11.0 C:\Users\Christopher\AppData\Roaming\npm\node_modules\nodemon ├── ignore-by-default@1.0.1 ├── undefsafe@0.0.3 ├── es6-promise@3.3.1 ├── debug@2.3.0 (ms@0.7.2) ├── minimatch@3.0.3 (brace-expansion@1.1.6) ├── touch@1.0.0 (nopt@1.0.10) ├── lodash.defaults@3.1.2 (lodash.restparam@3.6.1, lodash.assign@3.2.0) ├── ps-tree@1.1.0 (event-stream@3.3.4) ├── chokidar@1.6.1 (path-is-absolute@1.0.1, inherits@2.0.3, async-each@1.0.1, glob-parent@2.0.0, is-glob@2.0.1, is-binary-path@1.0.1, readdirp@2.1.0, anymatch@1.3.0) └── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, string-length@1.0.1, chalk@1.1.3, repeating@1.1.3, configstore@1.4.0, latest-version@1.0.1) E:\GitHub\Projects\mean-todo [master +0 ~1 -0 !]> nodemon

Spencer Snyder
Spencer Snyder
4,030 Points

A few things... What type of computer are you on, I'm guessing a Windows. Idk much about Windows but you may need to look up some seperate tuts for installing modules globally.

Also,

did you do the prerequisites for MEAN application. You should do the npm, nodejs, express, and angular videos all seperately before doing the MEAN todo video.

Looks like you're getting ahead of yourself a bit.

If you just want to get an app running, the angular course creates the exact same program. The MEAN stack just connects it to a backend database so you can persist your data and scale your app.

Cheers, Spencer

Christopher Parke
Christopher Parke
21,977 Points

Yeah I've done them in order. I only have this course and the Javascript testing course left to finish the full stack track. And yes I'm on Windows. It seems I have to look up a correction for nearly every command at this point. Treehouse might just be too Mac oriented, and it may be time to move on.

Christopher Parke
Christopher Parke
21,977 Points

I'm just watching the videos at this point. If I put the codes in verbatim it's always some new error. These videos are over a year old now I think and they haven't been updated. I don't know if Treehouse really cares about this track enough to fix the errors in it.

I mean, the CSS broke for all videos on most viewport sizes MONTHS ago, and it's still not fixed. I've been told Lynda.com is the place to go.

Spencer Snyder
Spencer Snyder
4,030 Points

I'm on a Mac and have had a great experience.

Have you tried downloading cygwin?? I hear that's the way to go for Windows.

Also, forget about the track, it's not updated enough. Just go to the library and search for JavaScript. There's a ton more lessons there and better ones that aren't in the JavaScript track.

Cheers Spence