ppyordanov / Dynamic-Noise-and-Pollution-Map

A dynamically generated University of Glasgow noise and pollution campus map via the innovative Smart Citizen Kit developed in Barcelona, Spain by FabLab.
0 stars 0 forks source link

Server Code Deployment #60

Closed ppyordanov closed 9 years ago

ppyordanov commented 9 years ago

Prototype Server code needs to be deployed in order to enable the client (Android) application to communicate with the central data store (at the moment the storage type that is being used by the mobile application is local: meaning that all of the route/ personal user information is being saved in the "cache" system directory on the device).

ppyordanov commented 9 years ago

In order to deploy the server code after the initial configuration, the FileZilla FTP client was used. I had to use an SFTP connection (Secure/SSH File Transfer Protocol) as the server would not let me connect using the regular /not so secure/ FTP I have been using for other websites that I am hosting elsewhere. I have setup an SSH key to be used for authentication but will be adding it to the server once deployment is 100% complete (using Putty and PuttyGen for public and private key generation). Using the "Interactive" login type I connected to my root directory and directly uploaded the source files (more convenient than Git at least on this stage).

            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.18</version>
                <configuration>
                    <includes>
                        <include>**/*Tests.java</include>
                    </includes>
                </configuration>
            </plugin>

Once those were fixed Maven started running normally and deployment succeeded. mvn clean install installed all of the dependencies from the project object model (pom.xml) successfully and was ready to run after installing the Jetty servlet: mvn jetty:run

deployed

NOTE: at the moment no domain name has been mapped to the hosting server as seen above: this is the hosting's IP address and relevant port the service is running on.

ppyordanov commented 9 years ago

Here are some screenshots to showcase the prototype UI on a mobile device (Google Nexus 7 2013):

screenshot_2014-12-07-23-30-07

screenshot_2014-12-07-23-30-24

ppyordanov commented 9 years ago

Update: the web server should be available on the its newly registered domain name (the prototype version is working as expected):

ppyordanov commented 9 years ago

Update: locally implemented iteration code will be uploaded to the server

ppyordanov commented 9 years ago

This task has been completed and can be closed now.