~sab/boo-test

53b7d77e6a7e5e8575e955a51057430307edda90 — sab 8 months ago a8b34f3
Update readme
1 files changed, 16 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +16 -0
@@ 20,12 20,28 @@ curl http://localhost:3000/2
curl -i -XPOST http://localhost:3000/api/comment -H "Content-Type: application/json" -d '{"title": "hello", "comment": "hey", "zodiac": "Aries", "mbti": "INFP", "enneagram": "1w2", "profile_id": "2", "commenter_id": "3"}'
```

## Like / Unlike a comment

```
curl -i -XPOST 'http://localhost:3000/api/comment/<commentId>/like' -H 'Content-Type: application/json' -d '{"liker_profile_id": "2"}'
```

```
curl -i -XPOST 'http://localhost:3000/api/comment/<commentId>/unlike' -H 'Content-Type: application/json' -d '{"liker_profile_id": "2"}'
```

## Run test

```
npm run test
```

## Start server

```
npm run start
```

## Known issues:
1. The app might not work with OS that doesn't ship with libcrypto version 1.1
2. Unique index in mongo memory server doesn't seem to work.
\ No newline at end of file