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

Releases: hyperbudget/hyperbudget-backend

v4.0.0

05 Aug 12:43
Compare
Choose a tag to compare

Update to typescript 3 - no breaking changes expected

Release: 2018-06-03

03 Jun 19:24
Compare
Choose a tag to compare
  • 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