Reditto is a simple SPA that talks to Reddit API and displays posts for Hot
and New
categories by utilizing the tech stack listed above.
- 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!
Once you have LaraDock
running or copied this codebase to your existing PHP environment, please take following steps to complete the installation:
- Update your
hosts
file to addredditto.app
domain. (Otherwise, Reddit API won't work) - Create a copy of
.env.example
and name it.env
:cp .env.example .env
- Alternatively, I have included
.env
file with appropriate configuration in the.zip
package - Install
composer
dependencies:composer install
- Create & set new app key for Lumen app:
php artisan key:generate
- Install
node
dependencies:npm install
- Create a development build:
npm run dev
You should be all set, open up your browser & go to: http://redditto.app
- Unit testing
- Client side caching to minimize HTTP calls