Skip to content

peltorator/psynder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psynder

Tinder for dogs

Generate keys

openssl genrsa -out app.rsa 2048
openssl rsa -in app.rsa -pubout > app.rsa.pub

Run server

(Twice)

docker-compose build --no-cache
docker-compose up

Or

docker-compose up --build

Request examples

signup

curl -v --insecure https://localhost:443/signup -H 'Content-Type: application/json' -d '{"email":"[email protected]", "password":"qwerty123"}'

login

curl -v --insecure https://localhost:443/login -H 'Content-Type: application/json' -d '{"email":"[email protected]", "password":"qwerty123"}'

psyna info

curl -v --insecure https://localhost:443/psyna-info  -H 'Content-Type: application/json'  -d '{"psynId":'1'}'

all info

curl -v --insecure https://localhost:443/get-all-info -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d ''

like psyna

curl -v --insecure https://localhost:443/like-psyna -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d '{"psynaId":1}'

psyna likes

curl -v --insecure https://localhost:443/get-psyna-likes -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d '{"psynaId":'1'}'

Deploy app to a physical device

./build_android_app.sh
adb -d install bin/myapplication.apk

About

Tinder for dogs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7