Authentication backend https://buildweek-saltytrolls.herokuapp.com/
Datascience backend http://kevinbrack.com:1337
UI landing page https://competent-wilson-ba0397.netlify.com/index.html
React app https://festive-ardinghelli-9da698.netlify.com/
Project week March 2019. Saltiest Hacker News Trolls group 1
Re: Git Workflow
Each project will have their own repository.
Students clone master and create a branch No Forks!
Work is submitted for review to the PMs or to the Team Leaders by way of Pull-Request.
https://www.notion.so/lambdaschool/Policies-and-Procedures-19e679fc1a284b668d8132dd8d7228cd
Pitch: Build an app that uses Hacker News comment data to rank commenters based on negative comment sentiment (saltiness).
MVP: App rates and ranks hacker news commenters by negativity of comment sentiment (limited to commenters who have made x number of posts). Allows users to search by username to view comments and sentiment levels of specific users.
Stretch Goal: App also displays the sentiment of individual comments by user allowing drilldown to a user view.
Dataset: https://www.kaggle.com/hacker-news/hacker-news
Here is where I would like each teams required environment variables stored. Since we all work on this file, I want you to clone it. Then right before you add a variable it want you to run get pull
in this repo, to make sure you are not deleting eachothers on your local machine. Then add the variable you need, git commit
and git push
right away. These will go directly to master
If the environment variable is something private just enter the NAME=
and then include a link on the next line where the user can sign up for that key. Remember to keep all secrets secret.
PORT=4000
REACT_APP_ROOT_URL=netlify.com/yadayada/ url = process.env.REACT_APP_ROOT_URL/bridges/
https://buildweek-saltytrolls.herokuapp.com/
Used to register a user and ensure that user information will be saved in the server.
- Javascript object with the following fields:
UserEmail
(string) -> it is assumed that only validated email addresses will be sentUserPassword
(string) -> this will be hashed
msg
(string) -> contains a success message string
msg
(string) -> contains an error object converted into a string for greater clarity in debugging
Used to log in and get authentication for accessing the main functionalities of the React app.
- Javascript object with the following fields:
UserEmail
(string)UserPassword
(string)
UserID
(string) -> the ID of the logged in userUserEmail
(string) -> the email address of the logged in usertoken
(string) -> token string that should be used for accessing restricted endpoints
msg
(string) -> contains an error object converted into a string for greater clarity in debugging
This endpoint is restricted to logged in users.
Used for a quick authentication check - will simply always return a success messsage on success, and fail (with status 401
) if token is either unsupplied or invalid.
- Request header (Javascript object) that should contain the token
msg
(string) -> contains a success message string
msg
(string) -> contains an error object converted into a string for greater clarity in debugging
This endpoint is restricted to logged in users.
Used to delete the current user.
- Request header (Javascript object) that should contain the token (security is in place for tokens that do not correspond to the current user being requested for deletion - status
403
(Forbidden) will be returned if this is attempted)
msg
(string) -> contains a success message string
msg
(string) -> contains an error object converted into a string for greater clarity in debugging
This endpoint is restricted to logged in users.
Used to update the current user's password.
- Javascript object with the following fields:
UserPassword
(string) -> this will be hashed
- Request header (Javascript object) that should contain the token (security is in place for tokens that do not correspond to the current user being requested for a password update - status
403
(Forbidden) will be returned if this is attempted)
msg
(string) -> contains a success message string
msg
(string) -> contains an error object converted into a string for greater clarity in debugging
Used to obtain an individual hacker's (Hacker News user) sentiment score, along with their username and comment count.
Will always return a sample Javascript object with the following fields:
HackerUsername
(string)HackerSentiment
(number - decimal)HackerCommentCount
(number - integer)
Returns the top 10 saltiest comments.
Will always return a sample array of Javascript objects with the following fields:
author
(string)sentiment
(number - decimal)ranking
(number - integer)time
(number - numerical representation of time)text
(string) =======