This repository has been archived by the owner on Aug 29, 2019. It is now read-only.
Releases: hyperbudget/hyperbudget-backend
Releases · hyperbudget/hyperbudget-backend
v4.0.0
Release: 2018-06-03
-
Add MVP user registration and log-in
- If I call it MVP it excuses it probably being horrible.
-
Now requires mongodb for 10000% more horrible.
- ENV var
MONGO_CONNECTION_STRING='mongodb://localhost:27017/hyperbudget-dev'
- ENV var
-
New config:
"app": {
"token_secret": "SET_THIS_REALLY_CAREFULLY",
"token_expiry": 2700
},
- new routes:
POST http://10.8.0.1:3000/account/register HTTP/1.1
content-type: application/json
{
"email": "[email protected]",
"password": "your-super-secure-password",
"firstname": "Errietta"
}
POST http://localhost:3000/account/login HTTP/1.1
content-type: application/json
{
"email": "[email protected]",
"password": "passpasspass"
}
GET http://10.8.0.1:3000/account/ HTTP/1.1
content-type: application/json
x-jwt: JSON_WEB_TOKEN_FROM_LOGIN