├── .gitignore ├── components ├── InteractiveButtons.js ├── Layout.js └── Photo.js ├── data └── db.json ├── nodemon.json ├── package-lock.json ├── package.json ├── pages ├── index.js └── photo.js ├── readme.md ├── server ├── index.js ├── models │ └── photoModel.js └── routes │ └── index.js ├── static ├── art │ ├── 10547074_1533921633486350_110615324_n.jpg │ ├── 10584559_835284339817092_1481087900_n.jpg │ ├── 10593244_721194281250987_220088259_n.jpg │ ├── 10597456_1519924261553666_1863286978_n.jpg │ ├── 10616485_291151261072849_1966044802_n.jpg │ ├── 10643907_752060824852022_992571927_n.jpg │ ├── 10706924_571714519595911_1377858612_n.jpg │ ├── 11015533_614181608712678_1890813502_n.jpg │ ├── 11055766_1625987057630945_1001931112_n.jpg │ ├── 11078620_964175566947957_1173683403_n.jpg │ ├── 11193031_846606082098782_2076006692_n.jpg │ ├── 11246813_1444527059175905_846391623_n.jpg │ ├── 11248015_1439340809700961_1166378400_n.jpg │ ├── 12317818_935715123165411_1906227833_n.jpg │ └── 927756_283684128492129_838664181_n.jpg ├── ca2caa1bc6a6d99c333acdfa26d17fc4.jpg └── profile.png ├── thumb1.png └── thumb2.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | 9 | # Runtime data 10 | pids 11 | *.pid 12 | *.seed 13 | *.pid.lock 14 | 15 | # Directory for instrumented libs generated by jscoverage/JSCover 16 | lib-cov 17 | 18 | # Coverage directory used by tools like istanbul 19 | coverage 20 | 21 | # nyc test coverage 22 | .nyc_output 23 | 24 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 25 | .grunt 26 | 27 | # Bower dependency directory (https://bower.io/) 28 | bower_components 29 | 30 | # node-waf configuration 31 | .lock-wscript 32 | 33 | # Compiled binary addons (https://nodejs.org/api/addons.html) 34 | build/Release 35 | 36 | # Dependency directories 37 | node_modules/ 38 | jspm_packages/ 39 | 40 | # TypeScript v1 declaration files 41 | typings/ 42 | 43 | # Optional npm cache directory 44 | .npm 45 | 46 | # Optional eslint cache 47 | .eslintcache 48 | 49 | # Optional REPL history 50 | .node_repl_history 51 | 52 | # Output of 'npm pack' 53 | *.tgz 54 | 55 | # Yarn Integrity file 56 | .yarn-integrity 57 | 58 | # dotenv environment variables file 59 | .env 60 | 61 | # parcel-bundler cache (https://parceljs.org/) 62 | .cache 63 | 64 | # next.js build output 65 | .next 66 | 67 | # nuxt.js build output 68 | .nuxt 69 | 70 | # vuepress build output 71 | .vuepress/dist 72 | 73 | # Serverless directories 74 | .serverless 75 | 76 | .DS_Store 77 | tutorial.md -------------------------------------------------------------------------------- /components/InteractiveButtons.js: -------------------------------------------------------------------------------- 1 | import { MdModeComment, MdFavoriteBorder } from 'react-icons/md' 2 | export default ({likes, LikesEntry, commentsNum}) => ( 3 |
{props.data.tagline}
13 |{this.state.image.tagline}
45 | { 46 | this.state.image.comments.map((comment, key) =>{comment.user}:{comment.body}
) 47 | } 48 | 53 |