Skip to content

Installation

abdelaziz321 edited this page Mar 3, 2019 · 2 revisions

Installation

Clone the repository.

git clone https://github.com/abdelaziz321/Q-Blog

change the directory into Q-Blog folder.

cd Q-Blog

First we will setup the laravel App

1- change the directory into the backend folder.

cd backend

2- install the dependencies by running Composer's install command.

composer install

3- create your environment file.

cp .env.example .env

4- Now generate the key that will be used to sign your tokens.

php artisan jwt:secret

5- make a symbolic link from public/storage to storage/app/public

php artisan storage:link

6- create a database named Q-Blog or whatever.

7- edit .env file with appropriate credential for your database server - these parameter(DB_DATABASE, DB_USERNAME, DB_PASSWORD).

8- migrate your database & Seed it with records.

php artisan migrate --seed

9- generate the application key.

php artisan key:generate

10- Run the server.

php artisan serve --port=8000

11- Start Laravel WebSockets.

php artisan websockets:serve

- make sure the server is running in port 8000 or you have to change the baseURL var inside the admin-panel=>main.js and the public site=>plugins/axios.js.

- at this point and if there is no errors, we installed our API successfully.


Now installing the admin panel

go to the admin-panel folder.

cd ../admin-panel

install the dependencies.

yarn

Now run the server using:

yarn serve

At the end we will install the public site

go to the blog folder.

cd ../blog

install the dependencies.

yarn

now we are done, run this command to start the dev server

quasar dev

Clone this wiki locally