BY: Edd Yerburgh
Slides: https://slides.com/eddyerburgh/testing-a-vuex-store
Twitter: https://twitter.com/EddYerburgh
By: Diana Rodriguez
BY: Edd Yerburgh
Slides: https://slides.com/eddyerburgh/testing-a-vuex-store
Twitter: https://twitter.com/EddYerburgh
By: Diana Rodriguez
{ | |
"alunos": | |
[ | |
{ | |
"nome": "Aluno1", | |
"idade": 12 | |
}, | |
{ | |
"nome": "Aluno2", | |
"idade": 13 |
const express = require('express') //importacao do pacote | |
const app = express() //instanciando express | |
app.get('/', function (req, res) { //endereco da requisicao onde e retornado hello world | |
res.send('Hello World') | |
}) | |
app.listen(3000) //execucao do servidor |
const express = require('express') //importacao do pacote | |
const app = express() //instanciando express | |
const alunos = [ | |
{ | |
nome: 'Aluno1', | |
idade: 12 | |
}, | |
{ | |
nome: 'Aluno2', |
const express = require('express') //importacao do pacote | |
const app = express() //instanciando express | |
const alunos = [ | |
{ | |
nome: 'Aluno1', | |
idade: 12 | |
}, | |
{ | |
nome: 'Aluno2', |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Alunos Front</title> | |
</head> | |
<body> | |
<h1>Lista de alunos estático</h1> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Alunos Front</title> | |
</head> | |
<body> | |
<h1>Lista de alunos estático</h1> |
const express = require('express') //importacao do pacote | |
const app = express() //instanciando express | |
const cors = require('cors') | |
const alunos = [ | |
{ | |
nome: 'Aluno1', | |
idade: 12 | |
}, | |
{ |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Alunos Front</title> | |
</head> | |
<body> | |
<h1>Lista de alunos estático</h1> |
const usuarios = [ | |
{ nome: 'Aluno 1', parcelasFaltantes: 3, valor: 89.9 }, | |
{ nome: 'Aluno 2', parcelasFaltantes: 5, valor: 19.9 }, | |
{ nome: 'Aluno 1', parcelasFaltantes: 7, valor: 49.9 }, | |
{ nome: 'Aluno 1', parcelasFaltantes: 6, valor: 69.9 }, | |
{ nome: 'Aluno 1', parcelasFaltantes: 2, valor: 99.9 } | |
] | |
let total = 0 |