GithubHelp home page GithubHelp logo

in2087's Introduction

IN2087

For group 42

ATTENTION!

Anything starting from branch v3 is just for personal interest instead of credits:)

How to set up the frontend + backend (on your machine)

  • install docker-compose
  • in the directory (where docker-compose.yml is), run docker-compose up --build (if that doesnt work, try with sudo)
  • wait for docker to finish doing its stuffs (until you see something like API is running in port 3000
  • try to type localhost:1234 on your browser, then add mongodb://mongo:27017/finda, and press connect, then you should be able to see the internal structure of the Mongo.
  • the frontend is running at localhost:3001
  • the backend is running at localhost:3000

Endpoints

Proposed endpoint structures are as follows:

Authentication / Entity managements

  • /auth
    • POST /login
    • POST /register
    • ~~[ ] POST /create_group ~~

Users

  • /me

    • POST /toPremium

    • GET /info

    • POST /info

    • GET /wants

    • POST /wants

    • DELETE /wants

    • [ ] PATCH /wants

    • GET /offers

    • POST /offers

    • DELETE /offers

    • [ ] PATCH /offers

  • /user/:username

    • GET /info
    • GET /wants
    • GET /offers

Debugging

  • /test
    • GET /register
    • GET /populate

Groups

  • GET /group
  • POST /group
  • /group/:groupname
    • GET /info

    • POST /info

    • GET /wants

    • POST /wants

    • DELETE /wants

    • [ ] PATCH /wants

    • GET /offers

    • POST /offers

    • DELETE /wants

    • [ ] PATCH /wants

    • GET /messages

    • POST /messages

    • POST /join

    • POST /quit

    • [ ] POST /canceljoin

    • [ ] POST /approve/:username

    • [ ] POST /reject/:username

    • [ ] POST /invite/:username

Searches

  • /search
    • GET /wants?q=<search_string>
    • GET /offers?q=<search_string>
    • GET /users?q=<search_string>
    • GET /groups?q=<search_string>

in2087's People

Contributors

aidanbeale avatar markuspaulsen avatar travistang avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.