How to Build a Windows Erlang PostgreSQL Dev Box - comptekki/dbswui GitHub Wiki

Install Erlang

Download and install Erlang from:

http://www.erlang.org/download.html

Add the Erlang c:\Program Files\erl5.9.2\erts-5.9.2\bin folder to your windows path.

Install Cygwin

Download and install Cygwin from:

http://www.cygwin.com/

During the install, add "make" under the Devel catetory and "openssh" under the Net category.

Install Git

Download and install git from:

http://git-scm.com/download/win

Make sure to select the third option for converting line endings. You want line endings left alone.

Install PostgreSQL

Download and install PostgreSQL from:

http://www.enterprisedb.com/products-services-training/pgdownload#windows

During the install, make sure to select the C locale.

In pgadmin, create database dbooks.

Run the SQL Shell and run this command:

\cd c:/cygwin/usr/local/src/dbswui/sample-data
\i dbooks.sql

Download dbswui git project

Run cygwin then type these commands:

cd /usr/local
mkdir src          # if src is not already created
cd src
git clone https://github.com/comptekki/dbswui.git

Edit include/db.hrl from "/usr/local..." to "c:/cygwin/usr/local/..."

Then run these commands:

cd dbswui
make
./start.sh

Run a browser and go to:

http://localhost:7080/db

or

https://localhost:7443/db

or to add/delete/update records

https://localhost:7443/db/edit

and use username test and password test. These values can be changed in dbswui/src/db.conf