zznicole / shopping-list

Ourshoppinglist is a Mobile-first Web application project. It was created by a team of two developers, using modern Javascript, ES6, React.js,Node.js DBOO database, Material UI, Arios......
0 stars 0 forks source link

Ability to share a list #14

Closed kft-a closed 3 years ago

kft-a commented 3 years ago

Somewhere there should be a share list button and a ShareListScreen. The user enters the email address of the other user(s?) that will be able to view/edit the list.

In first version, just a simple input field and a button to confirm is enough. In later versions, maybe it should be possible to unshare list or remove users from viewing/editing the list.

To share a list use API:

POST /sharelist

listid: \ userid: <other user's email>

i.e:

    axios
      .post(apiBaseUrl + "sharelist", {listid: id, userid: email})
      .then(function (response) {
...
kft-a commented 3 years ago

This has been done with commit 88a6c1fbed1.