An open API service indexing awesome lists of open source software.

https://github.com/maestroerror/mygebackendtask


https://github.com/maestroerror/mygebackendtask

Last synced: over 1 year ago
JSON representation

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