|
|
há 5 meses atrás | |
|---|---|---|
| bin | há 5 meses atrás | |
| controllers | há 5 meses atrás | |
| libs | há 5 meses atrás | |
| middlewares | há 5 meses atrás | |
| migrations | há 5 meses atrás | |
| models | há 5 meses atrás | |
| public | há 5 meses atrás | |
| .env.example | há 5 meses atrás | |
| .gitignore | há 5 meses atrás | |
| README.md | há 5 meses atrás | |
| composer.json | há 5 meses atrás | |
| composer.lock | há 5 meses atrás |
run ./bin/setup
run composer install
run php -S localhost:8000 -t public
on another terminal run curl -X POST http://localhost:8000/register -H "Content-Type: application/json" -d '{"username":"du","email":"teste@email.com", "password":"du123456", "company_id":1, "role_id":1}'
on the other terminal run ./bin/testgetjwt
on the other terminal run export JWT=<jwt tooken>
on the other terminal run ./bin/testusejwt
on the other terminal run ./bin/testhmac