Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add validators
- Loading branch information
Showing
43 changed files
with
535 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
var path = require('path'); | ||
var express = require('express'); | ||
var favicon = require('serve-favicon'); | ||
'use strict' | ||
|
||
var app = new express(); | ||
var port = process.env.PORT || 8400; | ||
var path = require('path') | ||
var express = require('express') | ||
var favicon = require('serve-favicon') | ||
|
||
app.use(express.static(path.join(__dirname, 'dist'))); | ||
app.use(favicon(path.join(__dirname, 'dist', 'favicon.ico'))); | ||
var app = new express() | ||
var port = process.env.PORT || 8400 | ||
|
||
app.get("/*", function(req, res) { | ||
app.use(express.static(path.join(__dirname, 'dist'))) | ||
app.use(favicon(path.join(__dirname, 'dist', 'favicon.ico'))) | ||
|
||
app.get('/*', function(req, res) { | ||
return res.sendFile(__dirname + '/dist/index.html') | ||
}) | ||
|
||
app.listen(port, function(err) { | ||
if (err) { | ||
console.error(err) | ||
} else { | ||
console.info("==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.", port, port) | ||
console.info('==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.', port, port) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.