Skip to content

Deployment in a Development Environment

Dr. M H B Ariyaratne edited this page Jul 21, 2019 · 19 revisions

For the development and testing purposes, you can easily clone the project and run with the help of NetBeans.

For MS-Windows

Download a database like MySQL or MariaDB and install it following instructions. Make sure to have a user with a password with all privileges. Configuration of the database is stated elsewhere.

Download the Netbeans with JDK bundle and install following instructions. Install all JavaEE plugins.

Download glassfish 4.1.2 server and unzip to a folder.

Open Netbeans and configure the glassfish server and MySQL. Clone the project with Netbeans. Locate the persistance.xml and configure database.

Run the project and the web application will start in a browser window.

For Ubuntu First, update the system by following commands

sudo apt-get update

sudo apt-get upgrade

Install MySQL (or MariaDB)

sudo apt install mysql-server

Configure MySQL access with following command. Follow defaults.

sudo mysql_secure_installation

Then log as the su

sudo mysql

You will get the mySQL command prommt. Create a new user and grant all privileges as below. Then grant all privileges as below.

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

CREATE USER 'sss'@'localhost' IDENTIFIED BY 'Bud7NilB';

GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';

Clone this wiki locally