Install all dependencies and run the server with
npm install && npm run start_dev
Then duplicate .env-template.js
inside the config directory, rename it to .env
and add necessary credentials.
Since the .env
file is excluded from git, no passwords will be leaked to github.
To transpile ES6 to vanilla JS and create the frontend-bundle with webpack run:
npm run build
Please enable the editorconfig plugin within your IDE and try to obey as many es-lint rules as possible.
The app has been released to Heroku @ https://agile-wave-55174.herokuapp.com.
The MongoDB-instance is hosted at mlab.com.
Ask for permission to deploy.
- method: POST
- path: /api/users/login
- parameters: email, password
- method: post
- path: /api/users/signup
- parameters: password, token
- method: get
- path: /api/users/logout
- parameters: none
- method: post
- path: /api/users/forgotPassword
- parameters: email
- method: delete
- path: /api/users/${userId}
- parameters: none
- method: post
- path: /api/users/create
- parameters: username, email
- method: get
- path: /api/users/
- parameters: none
- method: patch
- path: /api/users/${userId}
- parameters: assignedPages
- method: get
- path: /api/users/${userId}/assignedPages
- parameters: none
- method: get
- path: /api/users/${userId}/assignedPages
- parameters: none
- method: get
- path: /api/users/userfortoken/${token}
- parameters: none
- method: get
- path: /api/paginas/
- parameters: none
- method: post
- path: /api/paginas/
- parameters: name
- method: post
- path: /api/paginas/${pageId}/poll
- parameters: pageId, poll
- method: get
- path: /api/paginas/${pageId}/poll
- parameters: pageId
- method: put
- path: /api/paginas/${pageId}/poll
- parameters: pageId, optionId
- method: get
- path: /api/paginas/${pageId}/notices
- parameters: pageId
- method: get
- path: /api/paginas/${pageId}/notices/${noticesId}
- parameters: pageId, noticesId
- method: get
- path: /api/notices?userId=${userId}
- parameters: userId
- method: post
- path: /api/paginas/${pageId}/notices
- parameters: pageId, noticiaObject
- method: put
- path: /api/notices/${noticiaObject._id}/
- parameters: noticiaObject
- method: get
- path: /api/notices/${noticeId}/comments
- parameters:noticeId
- method: post
- path: /api/notices/${noticeId}/comments
- parameters: noticeId, data