Skip to content

Latest commit

 

History

History
25 lines (24 loc) · 1.02 KB

File metadata and controls

25 lines (24 loc) · 1.02 KB

Installation Instructions

  • Run git clone https://github.com/davidstar333/Laravel-Vue.js-Twitter-Streaming-API.git
  • Create a MySQL database for the project
    • mysql -u root -p
    • create database 'your-db-name';
    • \q
  • Copy .env.example to .env
  • Configure your .env file
    • DB_DATABASE=your-db-name
    • DB_USERNAME=your-db-username
    • DB_PASSWORD=your-db-password
    • add following lines
      • TWITTER_ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      • TWITTER_ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      • TWITTER_CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      • TWITTER_CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • Run 'composer update' from the projects root folder.
  • Run 'npm install' from the projects root folder.
  • From the projects root folder run 'php artisan key:generate'
  • From the projects root folder run 'php artisan migrate'
  • Run 'php artisan serve'
  • Run 'php artisan twitter:listen 1'
  • Run 'php artisan twitter:listen 2'
  • Start server at http://localhost:8000