Giter Club home page Giter Club logo

front-end-challenges's Introduction

Front-end Challenges

This repo will provide you with challenges that will take you over essential frontend knowledge.

Getting started

Begin by navigating to your IDE environment.

If you are running this project locally then it requires that you have nodejs, npm, and another global dependency called lr-http-server in order to live reload.

If you are running this in an remote environment (like c9.io), use the built in preview window to render the index.html of each respective lesson. You can skip the nodejs, npm, and Live Reload portions of this doc.

Node & NPM

You can check if you have node installed by typing the following command in your terminal:

> node -v
v9.10.1

If you have a node installed, the command should yield a version number like: v9.10.1 (like above).

If you do not have nodejs or npm installed, please follow the instructions on the nodejs website.

Live Reload HTTP Server

In addition to nodejs and npm we need to install Live Reload HTTP Server.

This is an npm package that we need to install globally which will spin up a local http server for you to view your files on. In addition to that, it will watch for changes on your files and reload automatically to reflect any new changes.

Run the following command in your terminal from anywhere in your workspace. This will globally install the package so you can use it anywhere.

npm install -g lr-http-server

Cloning the Repo

Now that you have all the dependencies, we can start working on the challenges.

Navigate to the top most directory where you clone repositories. Clone the repository into your workspace by using:

git clone https://github.com/khoadnguyen/front-end-challenges.git

Change directory into the cloned repo:

cd front-end-challenges

From here, you should see the challenges in each individual folder.

Instructions

Each challenge will be isolated into a single directory. For example, lesson 1 is located in the /lesson-1/ directory. To begin, cd into that directory.

For each specific challenge, read the specifications for completion of the challenge in the README.md and complete the requirements. If included, the final.jpg file should be what the result of the requirements looks like.

Directory Structure

/css/                       // CSS Folder
    main.css                // Main external CSS file
/img/                       // Image Folder
    cat.jpg                 // Example Image
/js/                        // Javascript Folder
    main.js                 // Main external JS file
favicon.ico                 // Favicon
index.html                  // Main index file
README.md                   // README Requirements
final.jpg                   // If provided, final result image file of output

Starting the live reload server

From within the challenge directory, run the following command in your terminal to serve your files locally.

> lr-http-server

HTTP server listening on port 8080
Serving /Directory/front-end-challenges/lesson
Livereload listening on port 35729
Watching files:

To stop serving the files, simple use CTRL + C to stop the process.

front-end-challenges's People

Contributors

khoadnguyen avatar pskrillz avatar phortonssf avatar giselcalvo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.