Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmed-hamdy101/laravel-portfolio
https://github.com/ahmed-hamdy101/laravel-portfolio
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmed-hamdy101/laravel-portfolio
- Owner: Ahmed-Hamdy101
- Created: 2023-08-05T21:59:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-26T19:29:20.000Z (12 months ago)
- Last Synced: 2023-12-26T21:08:05.427Z (12 months ago)
- Language: PHP
- Size: 1.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel portofile application
[![Send me a message on WhatsApp](https://img.shields.io/static/v1.svg?label=Send%20a%20message&message=🙈&color=1ebea5&logo=whatsapp&logoColor=white&labelColor=1ebea5)](https://wa.me/201141640812?text=I'm%20interested%20in%20your%20car%20for%20sale)
[![Email me](https://img.shields.io/static/v1.svg?label=Email%20me&labelColor=blueviolet&message=🌎)](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
```