Developer Environment setup#
At this point in time, I'm struggling to decide upon a stable development environment, as I have both a WIndows 10 laptop and Apple MacBook.
live-server - this is the best local development server. Has watch functionality & expedites development#
http-server - runs 2nd#
The editors I'm mucking about with at the moment are, and will change over time:
- Visual Studio - Insiders
- Sublime Text - best and fastest editor, licenced for 1 copy
Atom - I've got this loaded on both machines, though not doing anything just yet
JetBrains WebStorm - bought this a while ago prior to the onset of the first 2 editors, both of which I think are near superior (certianly cost $0.00, agains the JetBrains licence). I'll probably can this once the renewal comes in.
- JetBrains RubyMine - using this so that i can get to function definitions at press of button when battling RoR code. It's superior in functionality when it comes to that.
- Parallels for Mac - run windows on Mac (allows me to travel O/S with Mac)
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
Commands to know: git init git clone (url) git add (file names) git commit -m "(committed message) git remote add origin master (url) git push -u origin master git pull origin master
Commands used in this video: git init - initialize a new repo in a directory git config --global user.name "name" git config --global user.email "email" (--local option as well) git status - see the state of files in working tree, staging area vs latest commit in git history git add - move file(s) to the staging area git log - view the git history / git commit graph git diff - diff of working tree and staging area git diff --cached - diff of staging area and latest commit git rm - remove a file from the working tree and the staging area git checkout -- filename - retrieve a file from the staging area into the working tree git reset HEAD filename - retrieve a file from the latest commit into the staging area git checkout (commit hash) filename - retrieve a file from a previous commit