Skip to content

murnun/redditto

Repository files navigation

Lumen+ReactJS+Webpack+SASS

Overview

Reditto is a simple SPA that talks to Reddit API and displays posts for Hotand New categories by utilizing the tech stack listed above.

alt text

Installation Instruction

Prerequisite

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • Composer
  • Nodejs/NPM
  • Docker [optional]

In addition, I highly recommend using LaraDock for Docker containerization.

Documentation: http://laradock.io/documentation/
Github: https://github.com/laradock/laradock

Setup is super quick and highly configurable!

Steps

Once you have LaraDock running or copied this codebase to your existing PHP environment, please take following steps to complete the installation:

  1. Update your hosts file to add redditto.app domain. (Otherwise, Reddit API won't work)
  2. Create a copy of .env.example and name it .env: cp .env.example .env
  3. Alternatively, I have included .env file with appropriate configuration in the .zip package
  4. Install composer dependencies: composer install
  5. Create & set new app key for Lumen app: php artisan key:generate
  6. Install node dependencies: npm install
  7. Create a development build: npm run dev

You should be all set, open up your browser & go to: http://redditto.app

TODOs

  1. Unit testing
  2. Client side caching to minimize HTTP calls