Explain how to get a copy of your project up and running on the user's local machine for development and testing purposes.
- php ^8.1
- Composer
- XAMPP
- npm
Step by step guide on how to get your development environment running.
- Clone this repository
git clone https://gitlab.com/BillyHasman/NewsWebsite.git
cd NewsWebsite
- Install composer and npm packages
composer update
npm install
- Setup Laravel Environment
copy .env.example .env
php artisan key:generate
- Setup Database
Create Database in your MySQL server. Open
.env
file and updateDB_DATABASE={your_database_name}
with required credential. After that, run migration.
php artisan migrate
- Run server Open 2 terminal for running backend-server and frontend-server.
php artisan serve
npm run dev
- Accessing Project
Open
localhost:8000
to access News Page. Openlocalhost:8000/login
to access User Admin Dashboard
This is examples and instructions on how to use your project.