Preparing your Windows box for AWS and a MEAN (Node) website: git init
--
I walk through step by step how to get the Node.JS MEAN.JS scaffolded site working on a Windows 10 machine. In this section we’ll setup a local git repository. (And then you’ll be halfway done! The rest is all AWS stuff.)
Go to parent article — Build a robust MEAN website in under an hour for less than $1/day — part 1
Go to previous article — Preparing your Windows box for AWS and a MEAN (Node) website: Setup your MEAN.js website
If you’ve already setup git, then go to the next article — Setting up your MEAN (Node.js) website in AWS ElasticBeanstalk: IAM Configuration
Before we get too carried away, let’s save our work by setting up a git repo.
One cleanup activity first:
If you’re not still in the Git Bash window, go back to your project at “cd /c/projects/awesomewebsite/thedude” or where ever you saved it
First we need to get rid of the git references that were forked over from the meanjs generator.
Make sure you are in the directory that was created by the mean generator.
Remove the .git directory by running this command
rm -rf .git
Now that that’s removed we can initialize our own repository.
To get our repo started we’ll type
git init
Setup your identity if it hasn’t already been setup
git config user.email josephn@slalom.comgit config user.name CodingJoe
Then run git add. This command prepares your files for being saved. The dot means include everything.
Think of “add” as like adding items to a shopping cart, except in this case the “checkout” button is a “save” button.
git add .
Now commit. (commit = save) The “-m” stands for message. Supply a message for all your commits — other coders will thank you, including yourself.
git commit -m "first"
Great, you’ve started your journey.
Feel free to connect to a remote repository or whatever you wish later on. Here’s an article that talks about git.
Go to parent article — Build a robust MEAN website in under an hour for less than $1/day — part 1
Go to previous article — Preparing your Windows box for AWS and a MEAN (Node) website: Setup your MEAN.js website
Go to next article — Setting up your MEAN (Node.js) website in AWS ElasticBeanstalk: IAM Configuration