This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name cvgenerator; | |
| location / { | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header Host $http_host; | |
| proxy_pass http://127.0.0.1:5050; | |
| } | |
| } |
This file contains hidden or 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
| function (text) { | |
| return text.split('\n\n').map(rawFilm =>{ | |
| const data = rawFilm.split('\n').map(field => field.split(': ')); | |
| console.log(data) | |
| return { | |
| Title: data[1], | |
| Year: data[3], | |
| Format: data[5], | |
| Stars: data[7] | |
| } |
This file contains hidden or 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
| import React from 'react'; | |
| import { Component } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { combineReducers, createStore } from 'redux'; | |
| const todo = (state, action) => { | |
| switch (action.type) { | |
| case 'ADD_TODO': | |
| return { | |
| id: action.id, |