Browse Source

basic setup doc

ljoaquim 5 months ago
parent
commit
516530c4b1
1 changed files with 17 additions and 0 deletions
  1. 17 0
      README.md

+ 17 - 0
README.md

@@ -0,0 +1,17 @@
+# setup
+
+1. run ```./setup```
+
+2. run ```compose install```
+
+3. run ```php -S localhost:8000 -t public```
+
+4. on another terminal run ```curl -X POST http://localhost:8000/register -H "Content-Type: application/json" -d '{"username":"du","password":"du123456"}'```
+
+5. on the other terminal run ```./bin/testgetjwt```
+
+6. on the other terminal run ```export JWT=<jwt tooken>```
+
+7. on the other terminal run ```./bin/testusejwt```
+
+8. on the other terminal run ```./bin/testhmac```