Skip to content

Commit

Permalink
project base
Browse files Browse the repository at this point in the history
  • Loading branch information
akctba committed Dec 31, 2019
1 parent 8ca2355 commit bce46f7
Show file tree
Hide file tree
Showing 1,637 changed files with 141,991 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* importar configuracoes do servidor */
var app = require('./config/server');

/* parametrizar a porta de escuta */
app.listen(80, function() {
console.log('Server running...');
});
27 changes: 27 additions & 0 deletions config/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* importar o modulo do framework express */
var express = require('express');
var consign = require('consign');
var bodyParser = require('body-parser');
var expressValidator = require('express-validator');

/* Init Express server */
var app = express();

/* Setup Express variables 'view engine' and 'views' */
app.set('view engine', 'ejs');
app.set('views', './app/views');

/* Setup middlewares and assets */
app.use(express.static('./app/public'));
app.use(bodyParser.urlencoded({extended: true}));
app.use(expressValidator());

/* setup consign autoload */
consign()
.include('app/routes')
.then('app/models')
.then('app/controllers')
.into(app);

/* exportar o objeto app */
module.exports = app;
1 change: 1 addition & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/@types/bluebird/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

783 changes: 783 additions & 0 deletions node_modules/@types/bluebird/index.d.ts

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions node_modules/@types/bluebird/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/@types/bluebird/types-metadata.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions node_modules/@types/body-parser/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions node_modules/@types/body-parser/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions node_modules/@types/body-parser/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions node_modules/@types/body-parser/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions node_modules/@types/connect/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions node_modules/@types/connect/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bce46f7

Please sign in to comment.