git. If you receive an answer saying that the command is not found, you need to install.
sudo service apache2 stop
php -vyou should get a message with the installed PHP version, make sure this is the same version as you see in the XAMPP dashboard. If not, you need to switch php-version in the terminal. There are different ways of doing that depending on your setup, look for how to do it in your environment.
composer -Vyou should get a message with the installed Composer version
C:\xamppbeing the active folder
git clone https://github.com/ushahidi/platform.git platform. This will download the Ushahidi Platform API code repository inside a folder named
platform, inside your home folder
copy .env.example .env
cp .env.example .env
.envwith your IDE or text editor. This file is located inside your platform folder.
memcache(it's feasible set it up with memcache at some point, but for simplicity we use
DB_PASSWORDto be empty, so literally:
composer install. Wait while composer installs all the dependencies
composer migrateto run the database migrations.
adminuser with password
/etc/hostsfile in an editor with administrator privileges (i.e. with the terminal command
sudo nano /etc/hosts)
httpdocs, edit the file
.htaccess. Edit the contents of the file to match exactly these (you can open the file to edit through
sudo nano .htaccess):
.htaccess(as before, you can open the file to edit it through
sudo nano .htaccess). The contents should match these, again, exactly:
composer verifycommand. This will run some quick checks and may give you useful insights.
BACKEND_URL. This is a variable that configures the client to send API requests to the right API backend.