KhalidLam / AskMe-QA

Stackoverflow clone built using Laravel (RESTful-API) and ReactJs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AskMe-QA

An Stackoverflow Clone using Laravel (server) & ReactJs (client)

Installation

Clone the repository:

git clone https://github.com/KhalidLam/AskMe-QA.git

Set Up Server (Laravel)

Change directory to muora-server:

cd muora-server

Install PHP dependencies:

composer install

If you don't have Composer installed, instructions here.

Install Javascript dependencies:

npm install

If you don't have Node and NPM installed, instructions here.

Create your environment file:

cp .env.example .env

Update these settings in the .env file:

  • DB_DATABASE (your local database, i.e. "askme")
  • DB_USERNAME (your local db username, i.e. "root")
  • DB_PASSWORD (your local db password, i.e. "")

Generate an app key:

php artisan key:generate

Run the database migrations:

php artisan migrate

Database Seeding

If you need sample data to work with, you can seed the database:

php artisan db:seed

Create storage shortcut

php artisan storage:link

Run the server:

php artisan serve

Set Up Client (React)

Change directory to react-qa-project:

cd react-qa-project

Install Javascript dependencies:

npm install

Run React app:

npm start

About

Stackoverflow clone built using Laravel (RESTful-API) and ReactJs


Languages

Language:PHP 67.7%Language:SCSS 28.5%Language:Blade 1.7%Language:HTML 0.9%Language:CSS 0.8%Language:Shell 0.4%