Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
152 changes: 152 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@

# Created by https://www.gitignore.io/api/node,macos,webstorm

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env


### WebStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### WebStorm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/sonarlint

# End of https://www.gitignore.io/api/node,macos,webstorm
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:6.9.5-alpine

# Copy application files
COPY ./build /usr/src/app
WORKDIR /usr/src/app

# Install Yarn and Node.js dependencies
RUN npm install yarn --global --no-progress --silent --depth 0 && \
    yarn install --production --no-progress

CMD [ "node", "server.js" ]
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2014-present Konstantin Tarkus, KriaSoft LLC.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
38 changes: 22 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## RUN
`npm start` for dev or `docker build -t testapp .` and `docker run testapp`

## Notes:
https://docs.google.com/document/d/1D3lCwjdCNngTRg0Q3C0paEt7lW2jILE_TwqHeOA4m0A

## Coding Challenge

In order to be considered for this position, you must complete the following steps.
Expand All @@ -8,28 +14,28 @@ In order to be considered for this position, you must complete the following ste
### Prerequisites

- Please note that this will require some basic knowledge and/or the ability to learn of the following:
- [JavaScript](http://www.codecademy.com/tracks/javascript)
- [ExpressJS](http://expressjs.com/)
- [ReactJS](https://facebook.github.io/react/)
- [WebpackJS](https://webpack.js.org/)
- [ES6](http://es6-features.org/)
- Git
- [Docker](http://www.docker.com/)
- [JavaScript](http://www.codecademy.com/tracks/javascript)
- [ExpressJS](http://expressjs.com/)
- [ReactJS](https://facebook.github.io/react/)
- [WebpackJS](https://webpack.js.org/)
- [ES6](http://es6-features.org/)
- Git
- [Docker](http://www.docker.com/)

- You will need to have the following installed to complete this task
- [NodeJS](http://www.nodejs.org/)
- [Docker](http://www.docker.com/)
- [NodeJS](http://www.nodejs.org/)
- [Docker](http://www.docker.com/)

## Task

1. Fork this repository
2. Create a *source* folder to contain your code.
3. In the *source* directory, please create an WebpackJS/ExpressJS/ReactJS/ES6 app that accomplishes the following:
- Connect to the [Github API](http://developer.github.com/)
- Find the [nodejs/node](https://github.com/nodejs/node) repository
- Find the most recent commits (choose at least 25 or more of the commits)
- Create a route that displays the recent commits by author.
- If the commit hash ends in a number, color that row to light blue (#E6F1F6).
- Connect to the [Github API](http://developer.github.com/)
- Find the [nodejs/node](https://github.com/nodejs/node) repository
- Find the most recent commits (choose at least 25 or more of the commits)
- Create a route that displays the recent commits by author.
- If the commit hash ends in a number, color that row to light blue (#E6F1F6).
4. Dockerize your application by writing a docker.yml file and test it by running the container locally.
5. Commit and Push your code to your new repository
6. Send us a pull request, we will review your code and get back to you
Expand All @@ -38,7 +44,7 @@ In order to be considered for this position, you must complete the following ste

Create the following unit tests with the testing framework of your choice:

1. Verify that rows ending in a number are colored light blue.
1. Verify that rows ending in a number are colored light blue.

## Once Complete
1. Commit and Push your code to your new repository
Expand All @@ -48,4 +54,4 @@ Create the following unit tests with the testing framework of your choice:
- When building the react application, you are free to use any type of css/html library if you choose to
- You are free to write and modularize code any way you like just as long as you follow the requirements
- 4 spaces for indentation! No tabs!
- If you don't know how to do something, Google is your friend!
- If you don't know how to do something, Google is your friend!
Loading