Skip to content

juanmahidalgo/react-ssr-boilerplate

Repository files navigation

News app

See it in action

An App that shows news (Razzle+React+Redux).

A Razzle ♥ based project.

Some Packages / Libraries used:

How to use

Install it and run (development):

yarn install
yarn start

Run (production):

yarn build
yarn start:prod

Testing:

yarn test

Configuration

Environment variables:

  • RAZZLE_CONSUMER_KEY: News API consumer Key
  • RAZZLE_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

docker build -t react-news .
docker run -ti --rm -p 3000:3000 -e RAZZLE_CONSUMER_KEY=KEY -e RAZZLE_COUNTRY_KEY=CODE react-news

Deploy to now

  1. Login: yarn now login
  2. Add secrets:
  • yarn now secrets add razzle-consumer-key KEY
  • yarn now secrets add razzle-country-key COUNTRY
  1. Deploy: now

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published