https://github.com/khalidlam/askme-qa
Stackoverflow clone built using Laravel (RESTful-API) and ReactJs
https://github.com/khalidlam/askme-qa
axios bootstrap laravel php reactjs restful-api
Last synced: 3 months ago
JSON representation
Stackoverflow clone built using Laravel (RESTful-API) and ReactJs
- Host: GitHub
- URL: https://github.com/khalidlam/askme-qa
- Owner: KhalidLam
- Created: 2020-10-21T18:55:57.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-25T09:08:17.000Z (over 5 years ago)
- Last Synced: 2025-01-21T05:41:41.136Z (over 1 year ago)
- Topics: axios, bootstrap, laravel, php, reactjs, restful-api
- Language: PHP
- Homepage:
- Size: 393 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AskMe-QA
An Stackoverflow Clone using Laravel (server) & ReactJs (client)
## Installation
#### Clone the repository:
```bash
git clone https://github.com/KhalidLam/AskMe-QA.git
```
## Set Up Server (Laravel)
#### Change directory to muora-server:
```bash
cd muora-server
```
#### Install PHP dependencies:
```bash
composer install
```
_If you don't have Composer installed, [instructions here](https://getcomposer.org/)._
#### Install Javascript dependencies:
```bash
npm install
```
_If you don't have Node and NPM installed, [instructions here](https://www.npmjs.com/get-npm)._
#### Create your environment file:
```bash
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:
```bash
php artisan key:generate
```
#### Run the database migrations:
```bash
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
```bash
php artisan storage:link
```
#### Run the server:
```bash
php artisan serve
```
## Set Up Client (React)
#### Change directory to react-qa-project:
```bash
cd react-qa-project
```
#### Install Javascript dependencies:
```bash
npm install
```
#### Run React app:
```bash
npm start
```