These are chat archives for ushahidi/Community

31st
Jan 2018
Biplov Bhandari
@biplovbhandari
Jan 31 2018 09:22
What is the BACKEND_URL in the .env of the platform-api for using xampp server in the windows machine?
Ushbot
@ushbot
Jan 31 2018 09:28
[Angela Oduor Lungati, Ushahidi] Hey @biplovbhandari, i think it should be http://localhost/platform/httpdocs/ or the URL that points to your locally installed API
Ushbot
@ushbot
Jan 31 2018 12:42
[Pires Nogueira] Hello
Ushbot
@ushbot
Jan 31 2018 12:52

[Pires Nogueira] I tried adding languages to the client platform and I could not do it.
I took this step:
1 - Create account on the transifex platform
2 - Install transifex on my server
3 - Configure transifex remotely using this command> tx-remote configuration mapping https://www.transifex.com/ushahidi/ushahidi-v3/

But I just got ushahidiv3.client-en and also want PT.

4 - Run this command in the client platform folder> gulp transifex-download

So I get this error> https://www.transifex.com/api/2/project/ushahidi-v3/resource/client-en/tr anslation / sq_AL /? File returned 401

Can you help me please?

Ushbot
@ushbot
Jan 31 2018 13:03
[David Losada, Ushahidi] I think you’d need to tweak your .env file in the place where you build platform-client, so it contains these variables:
TX_USERNAME=<your transifex username>
TX_PASSWORD=<your transifex password>
[Pires Nogueira] then run gulp build?
Ushbot
@ushbot
Jan 31 2018 13:12
[Pires Nogueira] Still having the error
Ushbot
@ushbot
Jan 31 2018 13:19
[David Losada, Ushahidi] mm it may be something with permissions handling in the transifex side of things
[David Losada, Ushahidi] let me see
[David Losada, Ushahidi] can you try again @Pires ? I may have fixed something
[David Losada, Ushahidi] mmm no idea, I think that number would be transifex api version
[David Losada, Ushahidi] it seems they are at version 2
[Pires Nogueira] alright
[Pires Nogueira] Let me try
Ushbot
@ushbot
Jan 31 2018 13:32
[Pires Nogueira] This time I did not receive the error, but when I change the language, it is still in English
[Pires Nogueira] app.txeka.co
[Pires Nogueira] Oh
[Pires Nogueira] It's working to another language
[Pires Nogueira] Sorry
[David Losada, Ushahidi] great
[Pires Nogueira] Thanks
[David Losada, Ushahidi] you are welcome, glad we could get you set up
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:07
hello can you help me setup developer's instance in a windows machine?
i am following this tutorial http%3A%2F%2Fushahidi.s3.amazonaws.com%2Fdownloads%2Fcommunity_docs%2FUshahidi_Platform_v3_Manual.pdf
with apache xampp
i created the vhost in the xampp and map the document root to /server/www
the /server/www is build using 'gulp build'
i can login in as admin admin
this is the view that i get after login
image.png
as you can see i cannot see any option to customize my deployment
there are a number of error in the console screen
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:16
this is few of many errors
I want to use unbuild version so that I can step through the code
I have spent more than 2 days.. please let me set up
thanks
Ushbot
@ushbot
Jan 31 2018 15:23
[David Losada, Ushahidi] we have almost no expertise setting up Windows environments .. but anyway, looking at the errors, it seems that apache is serving the HTML , where it should actually be serving the corresponding JS payload
[David Losada, Ushahidi] have you checked that such vendord8e15…a4.bundle.js indeed exists in the webroot?
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:24
yes those files exist in the server/www
i built them using gulp build from the gulp file in the platform-client
yes you are right instead of serving json response it is serving html response
i have setup a demo site free at https://test-nepal.ushahidi.io
where it is serving json response
Ushbot
@ushbot
Jan 31 2018 15:27
[David Losada, Ushahidi] I have no idea why it’s doing that .. if the file exists, it shouldn’t happen
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:27
@ushbot how do you normally setup your developer's instance?
Ushbot
@ushbot
Jan 31 2018 15:27
[David Losada, Ushahidi] there must be something in the apache configuration / .htaccess
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:27
how do you setup the raw file so to debug step by step instead of build file?
Ushbot
@ushbot
Jan 31 2018 15:28
[David Losada, Ushahidi] we usually run the API (platform) on vagrant , then we run the client (platform-client) using node.js and gulp outside any vm
[David Losada, Ushahidi] i.e. just “gulp” instead of “gulp build”
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:29
i setup vagrant as well and did vagrant up && vagrant provision
but could not connect database through the Virtual Host
so I switched to apache
Ushbot
@ushbot
Jan 31 2018 15:30
[David Losada, Ushahidi] maybe you should add to the vagrant file a directive so it exports port 3306 as well
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:31
I am sorry I am noob in using vagrant. can you tell how do I expose port 3306 through vagarnt file?
Ushbot
@ushbot
Jan 31 2018 15:34
[David Losada, Ushahidi] oh actually it looks like homestead should already be doing it
[David Losada, Ushahidi] try port 33060 in localhost
[David Losada, Ushahidi] when your vagrant environment is up
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:36
let me try that
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:38
I get no response on that port
the platform-api is running in virtual machine
image.png
Ushbot
@ushbot
Jan 31 2018 15:40
[David Losada, Ushahidi] and port 8000 is working fine? i.e. http://localhost:8000
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:41
nope there is some error in the port
image.png
oh i havent changed the localhost in the db setting
this is my .env setting in the platform
DB_HOST=localhost
DB_NAME=ushahidi
DB_PASS=
DB_TYPE=MySQLi
DB_USER=root
Ushbot
@ushbot
Jan 31 2018 15:43
[David Losada, Ushahidi] I think localhost should be fine. mm I’m not sure what the correct username / password actually is.. but homestead says that the default they use is homestead / secret
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:44
let me try with homestead/secret
after changing should i run composer migrate
Ushbot
@ushbot
Jan 31 2018 15:45
[David Losada, Ushahidi] I guess so
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:47
i get access denied for user homestead@localhost
image.png
Ushbot
@ushbot
Jan 31 2018 15:48
[David Losada, Ushahidi] ah .. no I think composer migrate should be run within the vm
[David Losada, Ushahidi] since that’s where the database is located
[David Losada, Ushahidi] but maybe if you restart the vm it will just do it as part of the bootstrapping process
Biplov Bhandari
@biplovbhandari
Jan 31 2018 15:52
okay let me try that
btw what is the default user and login for vm?
Ushbot
@ushbot
Jan 31 2018 15:52
[David Losada, Ushahidi] I think you just run “vagrant ssh” in order to log in
Ushbot
@ushbot
Jan 31 2018 16:00
[David Losada, Ushahidi] I have to walk out now, if there’s anything else I’ll try to help with it later. good luck!
Biplov Bhandari
@biplovbhandari
Jan 31 2018 16:01
sure David
I will try it and let you know
thank you for taking time to helping me out
I am looking to contribute to the ushahidi platform
Biplov Bhandari
@biplovbhandari
Jan 31 2018 16:10
Hi David. I think I got it working