This repository contains the source code for the demo section of api.prokerala.com. You can use this as a starting point for developing your own web application. To use this demo, you need to have an account at api.prokerala.com. If you do not already have an account, you can sign up for a free account.
To run this demo you need to have the following dependencies installed
- PHP
- Composer
If you have git
installed on your computer, you can clone the repository using the following command.
git clone https://github.com/prokerala/astrology-api-demo
If you do not have git
installed, then you may download a ZIP archive of the repository, and extract it.
Switch to the newly created directory and run
composer install
On Linux/macOS, open up your terminal and run
DEMO_CLIENT_ID=<YOUR_CLIENT_ID> DEMO_CLIENT_SECRET=<YOUR_CLIENT_SECRET> php -S localhost:8000 -t public
On Windows, open Powershell and run
$env:DEMO_CLIENT_ID="<YOUR_CLIENT_ID>"
$env:DEMO_CLIENT_SECRET="<YOUR_CLIENT_SECRET>"
php -S localhost:8000 -t public
In the above commands, replace <YOUR_CLIENT_ID>
and <YOUR_CLIENT_SECRET>
with your actual client id and secret.
- If you get
command not found: php
(Linux/macOS) orThe term 'php' is not recognized as the name of a cmdlet
(Windows) error, ensure thatphp
executable directory is in yourPATH
variable.