# Users posting a resource are automatically subscribed ('following') the Discourse topics on their page

**URL:** https://publichappinessmovement.com/t/topic/1588
**Category:** React Js and Meteor
**Tags:** done, reactjs
**Created:** [3 September 2019 16:01 UTC](https://publichappinessmovement.com/t/topic/1588 "2019-09-03T16:01:11Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![green-loutre](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/green-loutre/32/583_2.png) [@green-loutre](https://publichappinessmovement.com/u/green-loutre)
#### Post date: [5 April 2020 12:14 UTC](https://publichappinessmovement.com/t/topic/1588/21 "2020-04-05T12:14:16Z")

</div>

“npm i dcs-client” does not work

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 April 2020 12:15 UTC](https://publichappinessmovement.com/t/topic/1588/22 "2020-04-05T12:15:40Z")

</div>

in local host?

if so DCS related code won’t work as that relies on communicating with a Discourse forum

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 April 2020 12:18 UTC](https://publichappinessmovement.com/t/topic/1588/23 "2020-04-05T12:18:20Z")

</div>

the only way to test DCS related stuff is to create a PR and i’ll push it to the live site, or if @zofrex can set you up on the testing server he’s been building this weekend

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [5 April 2020 12:21 UTC](https://publichappinessmovement.com/t/topic/1588/24 "2020-04-05T12:21:00Z")

</div>

> [@green-loutre](#):
>
> “npm i dcs-client” does not work

I’ve just tried on my side and it seems to be working fine. Would you please post the error message here?

---

<div class="post-metadata">

### Author: ![green-loutre](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/green-loutre/32/583_2.png) [@green-loutre](https://publichappinessmovement.com/u/green-loutre)
#### Post date: [5 April 2020 12:21 UTC](https://publichappinessmovement.com/t/topic/1588/25 "2020-04-05T12:21:58Z")

</div>

npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! bcrypt@2.0.1 install: `node-pre-gyp install --fallback-to-build`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the bcrypt@2.0.1 install script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 April 2020 13:05 UTC](https://publichappinessmovement.com/t/topic/1588/26 "2020-04-05T13:05:03Z")

</div>

@green-loutre can I just check. Is this an error you are getting trying to set up a local Dev environment, or have I missed something?

---

<div class="post-metadata">

### Author: ![green-loutre](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/green-loutre/32/583_2.png) [@green-loutre](https://publichappinessmovement.com/u/green-loutre)
#### Post date: [5 April 2020 13:06 UTC](https://publichappinessmovement.com/t/topic/1588/27 "2020-04-05T13:06:18Z")

</div>

No juste installing dcs-client to add the code in the your projetct

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 April 2020 13:13 UTC](https://publichappinessmovement.com/t/topic/1588/28 "2020-04-05T13:13:38Z")

</div>

although i’m not a lot of help from the technical side it would help if you could explain it like i’m 5 to help me get a picture of where you are so i can try to support as best i can. i expect Syl already understands this and his imput is more useful.

so, you have a local dev env up and this is the error message you get in it when putting the code in?

---

<div class="post-metadata">

### Author: ![green-loutre](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/green-loutre/32/583_2.png) [@green-loutre](https://publichappinessmovement.com/u/green-loutre)
#### Post date: [5 April 2020 13:16 UTC](https://publichappinessmovement.com/t/topic/1588/29 "2020-04-05T13:16:42Z")

</div>

I don’t have any dev env. I’m just in the project (fl-maps) and tried to add the pluggin dcs-client so I can import it in the file NewEvent

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 April 2020 13:21 UTC](https://publichappinessmovement.com/t/topic/1588/30 "2020-04-05T13:21:52Z")

</div>

@syl can you advise. I didn’t think we needed the dcs-client plugin as we had that in our Discourse forum

---

<div class="post-metadata">

### Author: ![zofrex](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/zofrex/32/572_2.png) [@zofrex](https://publichappinessmovement.com/u/zofrex)
#### Post date: [5 April 2020 13:31 UTC](https://publichappinessmovement.com/t/topic/1588/31 "2020-04-05T13:31:13Z")

</div>

I had issues with bcrypt too when I was building locally. I think I either had to downgrade to an older node (I matched the one in .travis.yml) or if I had to upgrade the bcrypt dependency. Basically, older bcrypt npm libs won’t install on newer systems.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [5 April 2020 16:18 UTC](https://publichappinessmovement.com/t/topic/1588/32 "2020-04-05T16:18:22Z")

</div>

@tmcnulty @zofrex it would be really helpful if you guys could chat with @green-loutre here and help them work out whats going on

---

<div class="post-metadata">

### Author: ![tmcnulty](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/tmcnulty/32/953_2.png) [@tmcnulty](https://publichappinessmovement.com/u/tmcnulty)
#### Post date: [5 April 2020 16:20 UTC](https://publichappinessmovement.com/t/topic/1588/33 "2020-04-05T16:20:49Z")

</div>

@green-loutre what version of NPM do you have installed?

---

<div class="post-metadata">

### Author: ![green-loutre](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/green-loutre/32/583_2.png) [@green-loutre](https://publichappinessmovement.com/u/green-loutre)
#### Post date: [5 April 2020 16:36 UTC](https://publichappinessmovement.com/t/topic/1588/34 "2020-04-05T16:36:36Z")

</div>

version 6.9.0.

---

<div class="post-metadata">

### Author: ![ArtyS](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/artys/32/288_2.png) [@ArtyS](https://publichappinessmovement.com/u/ArtyS)
#### Post date: [5 April 2020 19:54 UTC](https://publichappinessmovement.com/t/topic/1588/35 "2020-04-05T19:54:39Z")

</div>

> [@green-loutre](#):
>
> version 6.9.0.

Hey folks, sorry I’m late to the party

Do you have the compiler and build dependencies installed for bcrypt? (as it’s a native/compiled dependency, not just JS code)

Depending on your OS, you’ll find them listed here: [Installation Instructions · kelektiv/node.bcrypt.js Wiki · GitHub](https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions)

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [8 April 2020 20:17 UTC](https://publichappinessmovement.com/t/topic/1588/36 "2020-04-08T20:17:06Z")

</div>

Hi, I can take a look at this if someone isnt working on it already…

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [8 April 2020 20:20 UTC](https://publichappinessmovement.com/t/topic/1588/37 "2020-04-08T20:20:09Z")

</div>

yes please @Zahra and thank you for joining the build!

i suggest reading the comments above as we were guiding someone through setting this up last weekend but they hit a wall, we think due to their OS. This thread should give a good idea what needs to be done and where. also tag @syl for any technical questions relating to the code.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [9 April 2020 00:05 UTC](https://publichappinessmovement.com/t/topic/1588/38 "2020-04-09T00:05:27Z")

</div>

@zofrex bob just pointed out that we are coding on the wrong branch now i think. Whats the correct workflow to get the changes pushed to BTM and PHM?

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [11 April 2020 00:06 UTC](https://publichappinessmovement.com/t/topic/1588/39 "2020-04-11T00:06:08Z")

</div>

@syl @zofrex is going to be working on this tomorrow afternoon GMT. Will you be around to guide them in what they need to do?

@ArtyS if you happen to be online and can keep an eye and offer advice i’m sure that would be a great help too 🙂

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [11 April 2020 15:06 UTC](https://publichappinessmovement.com/t/topic/1588/40 "2020-04-11T15:06:44Z")

</div>

# Pulling important info out from above messages:

1. it needs to be added in the JavaScript code (client-side): when the user creates a new events, the corresponding Docuss tags (in your case “photos”, “videos” and “stories”) have to be created right away

2. @syl says: the code should be called whenever someone creates a new event.  
Please tell me when you found the location in the app code and I will check how the Docuss API should be called.

3. @green-loutre believes it should be here:

4. Andy defines expected behaviour: When a user posts something on the map three new Discourse threads are created. This code will subscribe the poster to those threads meaning that they get notified if anyone comments on their post

5. @Zahra says: Looks like its this one where the code needs to be added: [https://github.com/focallocal/fl-maps/blob/deploy-btm/imports/client/ui/pages/NewEvent/index.js](https://github.com/focallocal/fl-maps/blob/deploy-btm/imports/client/ui/pages/NewEvent/index.js)

[Previous page](https://publichappinessmovement.com/t/topic/1588.md?page=1)

[Next page](https://publichappinessmovement.com/t/topic/1588.md?page=3)
