https://github.com/maestroerror/mygebackendtask
https://github.com/maestroerror/mygebackendtask
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/maestroerror/mygebackendtask
- Owner: MaestroError
- License: mit
- Created: 2022-05-07T08:48:23.000Z (about 4 years ago)
- Default Branch: maestro
- Last Pushed: 2022-05-07T15:50:48.000Z (about 4 years ago)
- Last Synced: 2025-01-30T18:51:23.999Z (over 1 year ago)
- Language: PHP
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
- `git clone https://github.com/MaestroError/MyGeBackendTask.git`
- `composer install`
- `cp .env.example .env`
- `php artisan key:generate`
- `php artisan migrate:fresh --seed`
Note: I updated .env.example file with 'sqlite' connection to make installation process easier
### Testing
All tests are done well, you can easly run `php artisan test`
Or `php artisan serve` and test endpoints via postman, creds:
- name: Task user for cart
- email: cart@user.com
- password: 12345678
#### Some needed enpoints
- /user/login: POST - email, password
- /user/register: POST - name, email, password, password_confirmation
- /user/logout: POST - Needs bearer auth token
P.s. all routes demanded in task needs authentification (Sanctum), if you testing with postman get bearer token from user/login or user/register endpoint