For group 42
Anything starting from branch v3
is just for personal interest instead of credits:)
- install
docker-compose
- in the directory (where docker-compose.yml is), run
docker-compose up --build
(if that doesnt work, try withsudo
) - 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 addmongodb://mongo:27017/finda
, and pressconnect
, 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
Proposed endpoint structures are as follows:
- /auth
- POST /login
- POST /register
- ~~[ ] POST /create_group ~~
-
/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
- /test
- GET /register
- GET /populate
- 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
-
- /search
- GET /wants?q=<search_string>
- GET /offers?q=<search_string>
- GET /users?q=<search_string>
- GET /groups?q=<search_string>