Skip to content

RedArmadillo/ChatBackend

Repository files navigation

Description of Files in this package

  • package.json and package-lock.json
    • 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.
    • Highly recommended reading: https://docs.npmjs.com/files/package.json
  • Procfile
    • This is used by Heroku on deployment. It defines what command should be run to start the server.
    • Recommended reading: https://devcenter.heroku.com/articles/procfile
    • 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}

Resources

About

Backend for Android Chat App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •