Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giangmd/fabuks
https://github.com/giangmd/fabuks
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/giangmd/fabuks
- Owner: giangmd
- Created: 2020-03-21T06:37:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T19:24:13.000Z (almost 2 years ago)
- Last Synced: 2024-10-16T23:29:36.731Z (3 months ago)
- Language: PHP
- Size: 3.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Endpoint mock
Fabuks example awesome!!!## Required
- Docker Desktop
- Git
- Composer
- PHP >= 7.3
- Mariadb >= 10.4
- Node
- Npm## Setup
- git clone https://github.com/giangmd/fabuks.git fabuks
- cd fabuks**=> Build docker**
`docker-compose up -d --build`
**=> Config Laravel project**
- cd src
- composer install --no-scripts
- cp .env.example .env
- docker exec fabuks_app php artisan key:generate
- docker exec fabuks_app php artisan migrate
- docker exec fabuks_app php artisan passport:install**=> Creating A Password Grant Client For API**
`docker exec fabuks_app php artisan passport:client --password`
Config API_CLIENT_SECRET and API_CLIENT_ID in .env
**=> Build Front end Vuejs**
- cd src
- npm install
- npm run dev**=> Copy your IP to env**
`ifconfig`
Copy IP at `en0` to `APP_URL` in .env with `8080` port from `docker-compose.yml`
**=> Run command line generate data**
`docker exec fabuks_app php artisan super:update "[email protected]" "12345678" "12345678" --create`
`docker exec fabuks_app php artisan rates:generates 1.25`
**Config git hook pre-commit (not required)**
If you need to check your PHPCS check code standard before to commit.
```
cp git-hooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
```## Result
- WEB: `localhost:8080`
- WEB Admin: `localhost:8080/fabuks`
- PHP MyAdmin: `localhost:8088`## Testing
`//TODO`