https://github.com/ahmed-hamdy101/laravel-portfolio
https://github.com/ahmed-hamdy101/laravel-portfolio
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmed-hamdy101/laravel-portfolio
- Owner: Ahmed-Hamdy101
- Created: 2023-08-05T21:59:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-26T19:29:20.000Z (over 1 year ago)
- Last Synced: 2025-01-09T16:56:47.556Z (6 months ago)
- Language: PHP
- Size: 1.21 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel portofile application
[](https://wa.me/201141640812?text=I'm%20interested%20in%20your%20car%20for%20sale)
[](mailto:[email protected])![]()
![]()
![]()
# overview
- #### I What is Laravel
- #### II Requirements
- #### III Create Database with - phpmyadmin
- #### IIII Setup environments
- #### V build-in server
- #### VI Api test
- #### VII unit test# what is Laravel
* Laravel is a web application framework with expressive, elegant syntax. We believe development must
# requirements
- * PHP >= 8.0- * Apache server [ `wamp,mamp,xampp,lampp` ] or u can use build-in server
* - MySql Database : `MySQL ,Psql`
* - Composer installed on your machine
# Create database with php my admin
1. open browser and go to http://localhost/phpmyadmin
2. click new button in left side bar
3. enter name of the databse you want to create (ex: test)
4. select type as "utf8mb4"
5. click submit# Setup Environments
* install all dependencies except dev
```bash
> composer install --no-dev
> npm install
> npm run watch
```* create database and migrate tables
```bash
> php artisan migrate
```
* rollback
```php
> php artisan migrate:rollback
```
# build-in server
- Run larvel server
- > php artisan serve# api testing
1. open postman app
2. import file from project folder named "api_test.postman_collection.json".
3. change url to localhost:port/api/v1/{route} where port =
default port number for laravel server(8000).
4. hit send request.# unit test
```bash
> vendor\bin\phpunit tests\\Unit\\{nameOfTestFile}.php
or
> vendor\bin\phpunit {pathToTheFolderContainingTests}\\{nameOfTestFile}.php
```