An App that shows news (Razzle+React+Redux).
A Razzle ♥ based project.
Some Packages / Libraries used:
- Razzle: MIT License
- React: BSD License
- Redux: MIT License
- Redux Thunk: MIT License
- Material UI: MIT License
- ExpressJS: MIT License
- Jest: BSD 3-Clause License
- EsLint: MIT License
- Enzyme: MIT Lincense
- Axios: MIT Lincense
- React Reactions
Install it and run (development):
yarn install
yarn start
Run (production):
yarn build
yarn start:prod
Testing:
yarn test
Environment variables:
RAZZLE_CONSUMER_KEY
: News API consumer KeyRAZZLE_COUNTRY_KEY
: News API country key (e.g 'us')
Razzle uses Dotenv configuration, the easyest way is to create a .env.local
file on the root directory like this:
RAZZLE_CONSUMER_KEY=XXXXXXX
RAZZLE_COUNTRY_KEY=us
docker build -t react-news .
docker run -ti --rm -p 3000:3000 -e RAZZLE_CONSUMER_KEY=KEY -e RAZZLE_COUNTRY_KEY=CODE react-news
- Login:
yarn now login
- Add secrets:
yarn now secrets add razzle-consumer-key KEY
yarn now secrets add razzle-country-key COUNTRY
- Deploy:
now