pull/9/head
sundowndev 2018-08-19 18:52:01 +02:00
parent 47cdfb9c01
commit 0701295c99
5 changed files with 3049 additions and 0 deletions

14
app.js Normal file
View File

@ -0,0 +1,14 @@
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
const port = 8000;
//require functions
//routes
app.listen(port, () => {
console.log('We are live on ' + port);
});

5
app/routes/index.js Normal file
View File

@ -0,0 +1,5 @@
const postsRoutes = require('./posts');
module.exports = function(app, db) {
postsRoutes(app);
};

6
app/routes/posts.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = function(app) {
app.get('/posts', (req, res) => {
// You'll create your note here.
res.send('Hello')
});
}

2997
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

27
package.json Normal file
View File

@ -0,0 +1,27 @@
{
"name": "interview-v2",
"version": "1.0.0",
"description": "## Exercice",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sundowndev/interview-v2.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Sundowndev/interview-v2/issues"
},
"homepage": "https://github.com/Sundowndev/interview-v2#readme",
"dependencies": {
"body-parser": "^1.18.3",
"express": "^4.16.3"
},
"devDependencies": {
"nodemon": "^1.18.3"
}
}