Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Release: 2018-06-03

Compare
Choose a tag to compare
@errietta errietta released this 03 Jun 19:24
· 42 commits to master since this release
  • 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'
  • 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