-
Notifications
You must be signed in to change notification settings - Fork 49
Installation guide (for pre packaged releases)
Here are the simple steps you must preform in order to setup Hajk.
- Windows machine with IIS
- Unpack the zip-file to a folder, e.g.
D:\hajk
- Go to IIS
- Create a new website, point it to
D:\hajk
as root - Convert
admin
andmapservice
to IIS applications (by right-clicking and selecting "Convert to application") - Launch your server and navigate to
localhost
(or whatever your binding for the website is, in IIS). You should see theclient
application spinning up. (If not, see Troubleshooting below.) - The other applications are located in their respective directories, so if
client
is onlocalhost
, you can reachadmin
onlocalhost/admin
andmap service
onlocalhost/mapservice
.
- The
mapservice
application must have sufficient permissions to change files in the/mapservice/App_Data
directory. This is done by giving the user that runs the IIS Application Pool (by defaultIIS_IUSRS
)modify
permission on the directory. - It's recommended to restrict access to the
admin
application. One way to achieve it is to use IIS's built in Authentication module. DisableAnonymous Authentication
and enable your authentication method of choice, such asWindows Authentication
. Now users who try to reach thelocalhost/admin
endpoint will be prompted to login in with a valid Windows username and password.
Hajk consists of three separate applications: client
, admin
and mapservice
.
client
and admin
communicate with mapservice
using an API. For that to work, the two front-end applications must know where to find mapservice
. That is controlled in the appConfig.json
in client
and config.json
in admin
.
The most frequent problems when setting up Hajk are related to the different parts of Hajk not being able to communicate with each other. To debug, launch Developer tools in your browser and go to the Network tab. Reload the website. Client will request two files from mapservice
on load: layers
and map_1
. By default map service
is located directly under web root, but if your setup varies, make sure to point to the proper mapservice
application by editing client\appConfig.json
. The same should be done for admin
in admin\config.json
.