Skip to content
This repository was archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
fix: documentation and gamer tag minimum length.
Browse files Browse the repository at this point in the history
  • Loading branch information
estepanov committed Jun 29, 2018
1 parent 791aecf commit 4875ad9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/generator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ class Generator extends React.Component {
}
handleSubmit(event) {
event.preventDefault()
if (this.state.gamerTag.length < 12) {
if (this.state.gamerTag.length < 4) {
this.setState({
error: {
title: 'Gamer Tag Length', message: 'Sorry Gamer Tags must be longer than 12 characters.'
title: 'Gamer Tag Length', message: 'Sorry Gamer Tags must be longer than 3 characters.'
}, loading: false
})
} else {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const express = require('express')
const app = express()
const Jimp = require('jimp')
const axios = require('axios')
const volleyball = require('volleyball') // dont forget to remove when done
const volleyball = require('volleyball')

app.use(volleyball)
app.use(express.static('public'))
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Many online forums allow users to have signature which appears bellow every user
The front end of the application is only for user convenience. The real value is the image manipulation in `index.js` file.

The `index.js` file is an Express application that serves up front end and generates an image of a players Halo 5 statistics for specific xbox live gamer tag. For example visiting `http://localhost:8080/api/git%20push%20master/image.jpg` will return:

![sample of git push master halo 5 statistics](https://github.com/estepanov/hundred-line-halo-image-stats/blob/master/sample.jpg)

## Configuration
Expand Down

0 comments on commit 4875ad9

Please sign in to comment.