Service Finder is targeted at any public or third sector frontline worker looking to find services that might support the needs and circumstances of a citizen. It accesses open data collected to meet the data standard of the OpenReferral community
To use this project you must follow the steps mentioned below.
You will need the following:
Next we will comment step by step how to start with the Service Finder project:
To start with, open a command line and go to the project root folder. Then write the following line on command line:
For windows users:
$ npm install
For linux and MacOS users:
$ sudo npm install
When all the packages have been downloaded, you can now build and test the Service Finder
The project has two aspects of configuration: an API endpoint URL and a configuration data file to specify the Personas options.
To modify the API endpoint URL, modify the API_URL_BASE constant in the settings.js file.
To modify the Personas configurations, modify the config.js file (note that this refers to ID numbers specific to data held within the particular API).
-To run the project use the following command line
For windows users:
$ npm start
For linux and MacOs users:
$ sudo npm start
Then you can see the project running at :
-To build the project use the following command line
For windows users:
$ npm run build
For linux and MacOs users:
$ sudo npm run build
To go to the build folder just type the following line in the command line:
$cd ./build
These files are the ones that must be on the server.
When the files are hosted on the server, we will need to create a new file in the directory where the page is located.
The file will have to be called .htaccess
and the following lines must be inside this file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
In the public folder, there is a file called settingsConfig.json
. This file must be changed to include the endpoint URL of the API you wish to use.
By default, the API endpoint is:
https://api.porism.com/ServiceDirectoryService
The project was made with: