An experimental project to overlay an image on leaflet and interact with it
You will need the following tools to develop the project.
nodejs
, of version v6.9.1
npm
, of version 3.10.8
bower
, of version 1.8.0
PostgreSQL
, of version 9.6.1
$ git clone git@github.com:cozyazure/leaflet-overlay.git
$ cd leaflet-overlay
$ npm install
$ bower install
Run the following command to init the database schema. Note that this will drop the current database, if it exists.
$ psql -f config/initdb.sql
Afterwhich, you would want to set the password at config/db_connection.js
to your own PostgreSQL password.
var devDbPassword = "password"; //change to your own password
$ npm run dev
Alternatively, more manual approach:
$ NODE_ENV=development nodemon bin/www
or using plain node
:
$ NODE_ENV=development node bin/www
Press ctrl-c
to terminate the server.
To run project in Production environment with forever
:
npm install -g forever
Run the server in Production mode.
$ NODE_ENV=production npm start