r/javascript • • Oct 02 '14

Full stack JS developer.....

About me: A girl (ok woman) wants to become a full stack js developer. Know basic Web development stuff (html css jquery..Twitter bootstrap) and a bit of JS

Can anyone provide me with a road map and some tools I should start picking up?

Thanks●

0 Upvotes

67 comments sorted by

View all comments

3

u/yo-inderella Oct 02 '14

Thanks everyone. A lot being said about node. Any ideas on middle ware and frameworks?

To those pointing out the mention of my gender as others pointed out its just providing context about the person behind the screen sheeeeshh relax!

2

u/StuartPBentley Oct 02 '14 edited Oct 02 '14

Here's how I did it:

Step 1: know how HTTP works (browsers issue GET requests when clicking links / entering URLs in the address bar, forms POST by default, XHR lets you do whatever method etc). You mentioned you already have web experience so it's likely you already know this: if not, the Wikipedia pages on HTTP break it down pretty effectively.

Step 2: Know JavaScript, specifically how functions are first-class values (ie. you can make anonymous functions and pass them as an argument to a function). Again, since you mentioned you have web experience I'm assuming you know this.

Step 3: go over the API at http://expressjs.com/api - it's pretty straightforward. You give it functions to call when somebody makes a request for a certain kind of path (eg. when somebody GETs '/clock'). It'll call those functions giving you an object to read stuff about the incoming request, and an object to write the response. (If you take three arguments, it will also give you a function to pass the flow of execution / errors to, if you don't want the response to end at your function.)

Step 4: Assuming you want to make web pages, know HTML and CSS. It sounds like you already understand this to your satisfaction, so that's good.

Step 5: While you can just write functions for every page that build the response as a string and pass it to res.send(), it's generally a smoother experience to use the express.static() middleware to serve static assets like CSS, and use a templating language like Jade for page HTML.

At this point, it's generally best to start reading examples of other apps: I've written lots of Express apps, but plugmap.com is probably the most straightforward.

1

u/yo-inderella Oct 02 '14

Sounds like a plan kind of what I needed thanks

2

u/StuartPBentley Oct 02 '14 edited Oct 02 '14

I realize I forgot to mention the tools to actually do all this:

  • Understand terminals and the console / command line / shell: first word is the command name (by filename or looked up in the PATH variable), further arguments separated by spaces, enter to run a command, CTRL+C to stop it, up-arrow history, tab completion, basic stuff like that. As a web developer it's possible you're not familiar with this- I don't really know a good place to explain it, but it's pretty straightforward.

  • Know Git. The book Pro Git is a pretty good reference to learn it, and it's available as part of the official Git website.

  • Have a GitHub account. Being a developer without a GitHub account is kind of like being a filmmaker without a YouTube account.

  • Get an environment with Git and Node.JS. I recommend https://c9.io -it's pretty much the only thing I use. It's a web-based IDE that gives you both file-tree/editor and console access to a virtual Linux machine it creates for your project.

  • Get a free account on Heroku to deploy your apps to.

Here's how I do projects on Cloud9:

  • Create a repo for the project on GitHub, initialized with a README, the .gitignore for Node, and the MIT license.

  • Run these commands:

      npm init
      npm install --save express jade envigor <etc for other modules...>
    
      heroku apps:create <name goes here>
      # if you omit the name you'll get a random
      # app name like boiling-lake-1632
    
      git add package.json
      # ... code code code, save save save ...
      git add <your app files...>
      git commit -am 'Initial content'
    
      # publish to GitHub
      git push
      # deploy app to Heroku
      git push heroku master

Anyway, I've got a shitton of notes on all this stuff that's involved in doing web apps, you can check them out and shoot me any feedback where things are missing or unclear: https://trello.com/b/fg95RUZH/overview-start-here

The specific board that covers tools like this (not npm though): https://trello.com/b/2E3wJeUH/development-workspace