BY: Edd Yerburgh
Slides: https://slides.com/eddyerburgh/testing-a-vuex-store
Twitter: https://twitter.com/EddYerburgh
By: Diana Rodriguez
| <!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> |
| <!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 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', |
| 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 |
| { | |
| "alunos": | |
| [ | |
| { | |
| "nome": "Aluno1", | |
| "idade": 12 | |
| }, | |
| { | |
| "nome": "Aluno2", | |
| "idade": 13 |
BY: Edd Yerburgh
Slides: https://slides.com/eddyerburgh/testing-a-vuex-store
Twitter: https://twitter.com/EddYerburgh
By: Diana Rodriguez
| import { app, BrowserWindow, ipcMain, autoUpdater, dialog } from 'electron' | |
| import server from './server/server.js' | |
| import fs from 'fs' | |
| /** | |
| * Set `__statics` path to static files in production; | |
| * The reason we are setting it here is that the path needs to be evaluated at runtime | |
| */ | |
| if (process.env.PROD) { | |
| global.__statics = require('path').join(__dirname, 'statics').replace(/\\/g, '\\\\') | |
| } |