Infosys / Discourse-Java

Discourse-java is a platform where users can freely discuss on topics they want to, and like-minded people can join in and contribute
GNU General Public License v2.0
16 stars 12 forks source link

Build issues when running the project locally #3

Open Ashish-Dobhal opened 2 years ago

Ashish-Dobhal commented 2 years ago

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.

vishu184 commented 2 years ago

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": "" }

Ashish-Dobhal commented 2 years ago

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/settings/serviceaccounts/adminsdk We can add these steps to the README as well.

Ashish-Dobhal commented 2 years ago

@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

vishu184 commented 2 years ago

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