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
@mixin font-size($size){ | |
font-size: $size + px; | |
font-size: (0.0625 * $size) + em; | |
} | |
@mixin line-height($size){ | |
line-height: $size + px; | |
line-height: (0.0625 * $size) + em; | |
} |
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
e|-------------------------------------9---------------- | |
B|--12--9----9--12-12--9-----9--12--9-----12--10-------- | |
G|---------9--------------9----------------------------- | |
D|------------------------------------------------------ | |
A|------------------------------------------------------ | |
E|------------------------------------------------------ | |
e|--------------------------------------7--------------- | |
B|--10--7-----7--10-10--7-----7--10--7----10--9--------- | |
G|---------8---------------8---------------------------- |
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
<template> | |
<!-- here you define the component's HTML markup - remember: all the markup should be wrapped by a "father div" --> | |
<!-- like: | |
div | |
all your markup | |
/div | |
--> | |
<div> | |
<p>{{ msg }}</p> |
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
{ | |
"scripts": { | |
"start": "nodemon ./bin/www" | |
}, | |
} |
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
'use strict' | |
// importing packages | |
const express = require('express') | |
const bodyParser = require ('body-parser') | |
const app = express() | |
const cors = require('cors') | |
// applying our parsers |
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
'use strict' | |
// importing packages | |
const express = require('express') | |
const router = express.Router() | |
// setting an endpoint group | |
router.use('/publications', require('./publications')) |
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
'use strict' | |
const express = require('express') | |
const router = express.Router() | |
// @GET at http://localhost:XXXX/ | |
router.get('/', (request, response) => { | |
response.send({ status: 'OK', message: 'Your request was successfully received' }) | |
}) |
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
'use strict' | |
const express = require('express') | |
const router = express.Router() | |
const PublicationController = require('../../controllers/PublicationController') | |
const auth = require('../auth') | |
router.get('/', auth, PublicationController.getAll) | |
router.get('/:_id', auth, PublicationController.getById) |
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
'use strict' | |
const app = require('../app') | |
app.listen(app.get('port'), () => { | |
console.log(`Server up and running at ${app.get('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
'use strict' | |
// requiring packages | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const cors = require('cors') | |
const app = express() | |
// applying parsers | |
app.use(bodyParser.urlencoded({ extended: true })) |
OlderNewer