项目作者: sgarmendia

项目描述 :
A small app that consume from Flicker API made with ReactJS
高级语言: JavaScript
项目地址: git://github.com/sgarmendia/flicker-for-dummies.git
创建时间: 2018-08-17T15:53:39Z
项目社区:https://github.com/sgarmendia/flicker-for-dummies

开源协议:

下载


This project was bootstrapped with Create React App.

FLICKR FOR DUMMIES

Basic instructions:

  • Please clone this repository
  • Install with npm install

Folder Structure

After creation, your project should look like this:

  1. my-app/
  2. README.md
  3. .env
  4. .gitignore
  5. package-lock.json
  6. yarn.lock
  7. node_modules/
  8. package.json
  9. public/
  10. index.html
  11. favicon.ico
  12. manifest.json
  13. src/
  14. APi/
  15. FlickrApi.js
  16. components/
  17. Header.js
  18. Overlay.js
  19. Photos.js
  20. __tests__/
  21. Header.test.js
  22. Overlay.test.js
  23. Photos.test.js
  24. css/
  25. Header.css
  26. Overlay.css
  27. Photos.css
  28. App.js
  29. App.test.js
  30. index.css
  31. index.js
  32. logo.svg

The App.js component is designed as a container that manages the state for child components and makes the Api calls.

Children components in App.js are stateless.

The interaction with the Flickr API is managed by the FlickrApi.js helper file. Api calls are handled with promises and async/await features from es6/es7 js.

npm start

Runs the app in the development mode.

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

Basic tests are runned for all components.
In order to keep simplicity and dependencies at a minimum, no aditional testing dependencies were used (like enzyme) only native jest and react-dom

made by: Simon Garmendia