Discourse-Java icon indicating copy to clipboard operation
Discourse-Java copied to clipboard

Build issues when running the project locally

Open Ashish-Dobhal opened this issue 3 years ago • 4 comments

Hi Team,

Thanks for open sourcing the source code. I have been trying to run the app locally and get a build time error. Below is the stack trace of the error. https://pastecode.io/s/yqsvdbdo Please let me know if I am being silly h Before reaching this stage I had to create a db discourse-dev else there were issues in the build this too. I think this step could be add to the README or added directly to the build.

Ashish-Dobhal avatar Mar 22 '22 09:03 Ashish-Dobhal

Hi @Ashish-Dobhal Discourse Java is providing notification using firebase. So In Resource folder you will need to provide forums-firebase.json file which contains firebase credential configuration.

Sample forums-firebase.json Structure { "type": "test", "project_id": "", "private_key_id": "", "private_key": "", "client_email": "", "client_id": "", "auth_uri": "", "token_uri": "", "auth_provider_x509_cert_url": "", "client_x509_cert_url": "" }

vishu184 avatar Mar 22 '22 11:03 vishu184

thanks @vishu184 will try this now. Just realised it I had to login to firebase -> create a project -> navigate to project settings and generate private key example url: https://console.firebase.google.com/u/0/project<project_name>/settings/serviceaccounts/adminsdk We can add these steps to the README as well.

Ashish-Dobhal avatar Mar 22 '22 11:03 Ashish-Dobhal

@vishu184 I was able to sort out the issue with firebase now the backend boots but with elastic search errors but the app loads up fine. But when I click on the sign in btn there are errors on the next page. Could u pelase tell me how this can be resolved

Ashish-Dobhal avatar Mar 22 '22 12:03 Ashish-Dobhal

@Ashish-Dobhal Sorry for late reply we have check this issue and we are working on the changes in project.

vishu184 avatar Apr 04 '22 04:04 vishu184