Reditto is a simple SPA that talks to Reddit API and displays posts for Hotand 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
hostsfile to addredditto.appdomain. (Otherwise, Reddit API won't work) - Create a copy of
.env.exampleand name it.env:cp .env.example .env - Alternatively, I have included
.envfile with appropriate configuration in the.zippackage - Install
composerdependencies:composer install - Create & set new app key for Lumen app:
php artisan key:generate - Install
nodedependencies: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
