Skip to content

SoftStackFactory/nodeschool-javascripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAVASCRIPTING

Learn JavaScript by adventuring around in the terminal.

Looking for more interactive tutorials like this? Go to nodeschool.io.

Get help

Having issues with javascripting? Get help troubleshooting in the nodeschool discussions repo, or on gitter:

Gitter

Overview

The goals of this lesson is to help you become more comfortable with cloud9, bash git and basic javascript.

Prequisites and Setup

a github account will be needed to move forward in the course. If you do not already have one you can signup here: Github

Before we start the lesson we need to configure cloud9 to use your git account In the terminal run:

$ git config --global user.name "Mona Lisa"

Replace Mona Lisa with your github name

Second step:

$ git config --global user.email "email@example.com"

Replace email@example.com with the github email address on you used for your github account

Create Directories For Course

Run all the steps in the terminal

  1. Create a folder named: challenges
  2. change the directory into challenges folder
  3. Create another folder week-1
  4. change the directory into week-1
  5. Create another folder javascripting
  6. Clone this repository into javascripting folder
$ git clone https://github.com/SoftStackFactory/nodeschool-javascripting.git

Bash Commands Hint:

  • cd change directory
  • mkdir create new folder

Install javascripting with npm

Open your terminal and run this command:

npm install --global javascripting

The --global option installs this module globally so that you can run it as a command in your terminal.

Having issues with installation?

If you get an EACCESS error, the simplest way to fix this is to rerun the command, prefixed with sudo:

sudo npm install --global javascripting

You can also fix the permissions so that you don't have to use sudo. Take a look at this npm documentation: https://docs.npmjs.com/getting-started/fixing-npm-permissions

Run the workshop

Open your terminal and run the following command:

$ javascripting

You'll see the menu:

javascripting screenshot

Navigate the menu with the up & down arrow keys.

Choose a challenge by hitting enter.

Take a look at this gif that shows the first challenge:

first challenge

Create a file when you start a challenge Ex: challenge-1.js We can use the command touch in the terminal to create a file.

$ touch challenge-1.js

To test your code and pass the challenge run in your terminal:

$ javascripting verify challenge-1.js

Lesson Flow Review

Note is a placeholder replace everything with the exact name.

touch <filename>
touch challenge-1.js
  1. Create a new file for the challenge File name example: challenge-1, challenge-2
$ touch <filename>
  1. Test your solution with:
$ javascripting verify <filename>
  1. Now once we have passed the javascripting test we can check the status of our the files that have changed in the terminal run:
$ git status

Files in red font are changes to files that are not staged and will not be apart of the commit 4. Lets *add our changes so they will be apart of the commit.

$ git add .

This will add all our files that were changed and are now staged or ready to be commited.

  1. Lets commit all the files we added in the previous step but first it is good practice to see what will be commited buy running:
$ git status

Now you should see files in green font that will be apart of the commit. Now lets commit the files with:

$ git commit -m "message about what you did here"
  1. Now run the javascripting program to select a new lesson:
$ javascripting
  1. Create a new file for that lesson.
$ touch <file-name>

Need help with an exercise?

Ask for help in glip or try the discussion boards below

Open an issue in the nodeschool/discussions repo: https://github.com/nodeschool/discussions

Include the name javascripting and the name of the challenge you're working on in the title of the issue.

License

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published