Libremap comes with 2 main components for installation which are :
The directives of installing libremap are pretty clear on those repositories.
So from my experience, these are all the steps, i took to make sure everything was running.
After installing couchdb and geocouch, I created a database from couchdb (also created an admin account) and named it "mapit" for example. When installing libremap-api i got to this section below :
Copy couch.json.example to couch.json and configure your CouchDB server there.
I did per the instruction and since i had to change the contents of the couch.json file, this is what i included for the "dev" section.
"dev": {
"database": "http://localhost:5984/mapit",
"user": "admin",
"pass": "admin"
}
The url is where your couchdb database is located and the passwords beneath.
So after the setup of libremap-api, i moved to the libremap-webui phase where i followed the instructions as stated in the link provided. At step 3,
- Copy config.json.example to config.json and configure your LibreMap API URL there. If you don't have your own LibreMap API you can use an existing one, for example http://libremap.net/api.
Since i wanted to have my own libremap instance and use my own API url, what i did was to add my own api url inside the config.json file which is :
http://localhost:5984/mapit/_design/libremap-api/_rewrite/
Note : The url can be made shorter with vhost.
After that being done with other minor changes in the config.json file, i proceeded to also create the couch.json file which i added the database url as i did before with the libremap-api couch.json file. (I mention only the file changing steps, other steps such as "grunt push --couch dev" should not be skipped)
Et voila ! Thats all, i did and the next thing was to run using grunt. Which then gave me a url to access the webui (in my case 0.0.0.0:9000)
No comments:
Post a Comment