You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These files are used to describe dependencies for the project. There are several packages we use for connecting to databases, connecting to our Mail client, etc.
NOTE If you change the name of the .js file from index.js, you will need to update the Procfile accordingly.
.gitignore
This file stops certain files from being commited in git, when you run git add .. For example, I'm using the vscode text editor, and it has a few files in the .vscode directory that aren't related to the code and therefore shouldn't be committed.
Please avoid committing the node_modules/ folder that will be created when you run npm i. Its a mess of a directory and contains a lot of stuff that's required for node.js to run, but really shouldn't be committed alongside the code
Endpoints (WIP)
/contacts/
GET /contacts/[username]/
GET /contacts/[username]/verified
GET /contacts/[username]/outgoing
GET /contacts/[username]/incoming
POST /contacts/[username]/request
body: {username_b: the user to send the request to}
POST /contacts/[username]/accept
body: {username_b: the user accept a request from}
POST /contacts/[username]/reject
body: {username_b: the user to reject a request from}