The server/api for the termómetro app.
- POST
/user/signup
will attempt to create a new user. The request is expected to contain a name, email, password and company in its body. - POST
/user/login
are expected to contain an email and password. If the credentials are OK a signed token will be sent back with the response. - GET
/auth
will simply check if there's a valid token in the request's header, that's it.
-
POST
/survey/create
will attempt to create a new survey. WIP -
GET
/survey/:id
will search the surveys collection for a survey that matches the query id (surveyName = id)
npm run test
should trigger the automatic tests provided you have mocha installed globally.