|
|
hace 5 meses | |
|---|---|---|
| bin | hace 5 meses | |
| controllers | hace 5 meses | |
| libs | hace 5 meses | |
| middlewares | hace 5 meses | |
| migrations | hace 5 meses | |
| models | hace 5 meses | |
| public | hace 5 meses | |
| .env.example | hace 5 meses | |
| .gitignore | hace 5 meses | |
| README.md | hace 5 meses | |
| composer.json | hace 5 meses | |
| composer.lock | hace 5 meses |
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