ThePlatinum / TheSphere

TheSphere news aggregator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TheSphere - Innoscripta Assessment

TheSphere is a news aggregator application with APIs that power a ReactJS frontend. Below are the steps to run the project:

Getting Started

  1. Clone the repository:
    git clone https://github.com/your-username/TheSphere.git
  1. Navigate to the project directory:
    cd TheSphere
  1. Set up environment variables:
  • Rename the .env.example file to .env:

    cp .env.example .env
  • Generate app key:

    php artisan key:generate
  • Open the .env file and configure the necessary environment variables, such as database connection details. (NOTE, I have updated the .env to be exactly what was used in the development so no change may be necessary)

  1. Build and start the Docker containers:

Have Docker engine running:

    composer install
    ./vendor/bin/sail up

Sail Up

  • Start javasript libraries
    ./vendor/bin/sail yarn dev

Yarn

  • Run Migration and seed the database
./vendor/bin/sail artisan migrate --seed

Seed result

  • Start the Laravel queue worker
./vendor/bin/sail queue:work
  • Navigate to localhost/fetch-news

Now wait for the queue works to be completed, there's 4 of them and shuld look like this: Queue result

  1. Access the application:
  • Open a web browser and visit http://localhost to view the to access the admin dashboard and analytics, log in with the following credentials:

Admin dashboard

  1. Setup the Frontend Application here: TheSphere Frontend

About

TheSphere news aggregator


Languages

Language:PHP 70.2%Language:Blade 29.3%Language:JavaScript 0.4%Language:CSS 0.0%