A simple website to display a list news getting from free NYTimes API.
Stack: react
, react-router
, redux
, axios
, bootstrap
, ... view all at package.json
We need:
- Nodejs 8+
- yarn
$ yarn
$ yarn run dev
Files:
src/**/**.test.js // Unit test
src/**/**.ui.test.jsx // UI test
$ yarn run test
$ yarn -production=true
$ yarn run build
.env
src
├───actions
├───assets
├───components
├───pages
├───reducers
├───scripts
├───styles
└───templates
App's configuration, can choose your ${topic}
at NYTimes by the way: edit COLLECTION=
at this file. Also can change title and main API key of app at here.
Root of this app, contain:
index.js
the first file, everything comes from here.App.jsx
- the root component of app- subfolders - the organization of the directory tree of all content that makes up this website, see below.
All actions that this app needs. Based on the theory of Redux architecture.
Contain all resources this app needs.
Contain React
's components.
Contain app's pages.
Contain Redux
's reducers. Based on the theory of Redux architecture.
JS libs, contain functions that the app needs to run.
Most style files follow their component
(in my opinion - like: News.jsx
and News.scss
). This place contains only special style files.
Contain html templates of the app.
Temp no license @pierreneter