5th April Installation Manual. Department of Computing and Networking Software Development Degree

Similar documents
Ionic Tutorial. For Cross Platform Mobile Software Development

IDWedgeKB Serial Port and NodeJS

Getting started with Tabris.js Tutorial Ebook

Choose OS and click on it

Hands-on Lab Session 9011 Working with Node.js Apps in IBM Bluemix. Pam Geiger, Bluemix Enablement

Ideal Test Plan. Unit testing:

Salvatore Rinzivillo VISUAL ANALYTICS

Getting Started With NodeJS Feature Flags

TigerConnect. Product Guide. Tajreen Ahmed Jessica Edouard Kevin Finch Lillian Meng

Introduction to Express.js. CSC309 Feb. 6, 2015 Surya Nallu

Installing VS Code. Instructions for the Window OS.

Running and Debugging Custom Components Locally

Node.js. Node.js Overview. CS144: Web Applications

WeCode. Brought to you by CitrixNChill

Web Development for Dinosaurs An Introduction to Modern Web Development

International Research Journal of Engineering and Technology (IRJET) e-issn: Volume: 05 Issue: 05 May p-issn:

Topic: Dropbox. Instructional Technology Services Dropbox Faculty Help. Dropbox Features: Minimum Requirements: Create a Dropbox Account

Data Management CS 4720 Mobile Application Development

IBM Image-Analysis Node.js

What is Node.js? Tim Davis Director, The Turtle Partnership Ltd

welcome to BOILERCAMP HOW TO WEB DEV

END-TO-END JAVASCRIPT WEB APPS

Tools. SWE 432, Fall Design and Implementation of Software for the Web

MAY CANVAS UPDATES FOR TEACHERS

Exercise 1. Bluemix and the Cloud Foundry command-line interface (CLI)

Catbook Workshop: Intro to NodeJS. Monde Duinkharjav

How to implement applications for Smart Devices... using GeneXus.

Practical Node.js. Building Real-World Scalable Web Apps. Apress* Azat Mardan

Interlink Express Desktop Printing Service Installation Guide

Chapter 1 - Development Setup of Angular

Lab 3: Using Worklight Server and Environment Optimization Lab Exercise

This tutorial is meant for software developers who want to learn how to lose less time on API integrations!

Topic 12: Connecting Express and Mongo

Adobe Marketing Cloud Bloodhound for Windows 2.2

Adobe Marketing Cloud Bloodhound for Mac 3.0

Backend Development. SWE 432, Fall Web Application Development

EPHP a tool for learning the basics of PHP development. Nick Whitelegg School of Media Arts and Technology Southampton Solent University

Lab Android Development Environment

Connecting Remotely Staff & Students

Pro Events. Functional Specification. Name: Jonathan Finlay. Student Number: C Course: Bachelor of Science (Honours) Software Development

IEMS 5722 Mobile Network Programming and Distributed Server Architecture

Angular from the Beginning

PiranaJS installation guide

(Refer Slide Time: 1:12)

Index. Elad Elrom 2016 E. Elrom, Pro MEAN Stack Development, DOI /

BLACKBERRY SPARK COMMUNICATIONS PLATFORM. Getting Started Workbook

Advance Mobile& Web Application development using Angular and Native Script

Upon completion of the second part of the lab the students will have:

IN4MATX 133: User Interface Software

August, HPE Propel Microservices & Jumpstart

Instruction: Download and Install R and RStudio

Lab 1 - Introduction to Angular

Gmail: , find, and manage your contacts

Quick Desktop Application Development Using Electron

Configuring Anonymous Access to Analysis Files in TIBCO Spotfire 7.5

XML Tutorial. NOTE: This course is for basic concepts of XML in line with our existing Android Studio project.

HOW TO DEVELOP FOR GLASS ENTERPRISE

GMusicProcurator Documentation

Collaborating with Office 365. OneDrive for Business Office 365 Groups

Science One CS : Getting Started

Internet Praktikum TK WS17/18 (Kickoff) Lecturer: Christian Meurisch, Sebastian Kauschke

udcv Installation Guide Documentation

13/03/2017. Author Bartosz Zurawski (C ) Project Coordinator Joseph K. Research

Learn how to get started with Dropbox: Take your stuff anywhere. Send large files. Keep your files safe. Work on files together. Welcome to Dropbox!

By Stephen Cavell, Kerry Ellwanger, and Jack Livingston

Come and Get Excited about Azure Mobile Services and Xamarin.Forms

Workshare Client Extranet. Getting Started Guide. for Mac

Getting started with Raspberry Pi (and WebIoPi framework)

Joomla Website User Guide

Mobile Development June 2015, TEIATH, Greece

1. Implementation of Inheritance with objects, methods. 2. Implementing Interface in a simple java class. 3. To create java class with polymorphism

CS371m - Mobile Computing. Persistence - Web Based Storage CHECK OUT g/sync-adapters/index.

Adapting JDT to the Cloud. Alex Boyko Pivotal Jay Arthanareeswaran - IBM John Arthorne - IBM

Getting started with Convertigo Mobilizer

Microsoft Office is a collection of programs that you will be already using in school. This includes Word, PowerPoint, Publisher, Excel etc..

Backend Development. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Angular 2 Programming

WebSphere Puts Business In Motion. Put People In Motion With Mobile Apps

React(.js) the Domino Way High-Performance Client for Domino. Knut Herrmann

MOdern Java(Script) Server Stack

FROM VSTS TO AZURE DEVOPS

Download and Installation Instructions. Eclipse Kepler Software for Mac OS X

Windows quick start instructions Pg. 1. OS X quick start instructions Pg. 4. ios quick start instructions Pg. 6

MongoDB. Robert M. Vunabandi

MeshCommander User s Guide

Scheduling WebEx Meetings

Kollaborate Server. Installation Guide

Self-Service Portal Registering, downloading & activating a soft token

Lab 6: Testing. Software Studio DataLab, CS, NTHU

IBM Watson Solutions Business and Academic Partners

Manual Content. What s New in CAASPP Assessments. Secure Browser Versions. Operating Systems for Student Testing. Support

South Essex College Remote Resources

Building a Simple Workflow Application for the Sybase Unwired Server [Part 3]

Web Application Development

WA2535 Apache Cordova From the Ground Up. Classroom Setup Guide. Web Age Solutions Inc.

An Introduction to Box.com

Index. Chaminda Chandrasekara 2017 C. Chandrasekara, Beginning Build and Release Management with TFS 2017 and VSTS, DOI /

DDS Connector Sept, Gianpiero Napoli, Senior Software Engineer

TalkToMe: A beginner App Inventor app

Scheduling WebEx Meetings

Transcription:

5th April 2017 Installation Manual Department of Computing and Networking Software Development Degree Project name: Student: Student Number: Supervisor: MaaP (Message as a Platform) Chihabeddine Ahmed C00210496 Joseph Kehoe

Table of Contents 1. INTRODUCTION...1 2. THE FRONTEND (ANDROID UI)...1 2.1 BEFORE RUNNING THE APPLICATION... 1 2.2 CONFIGURE THE APP FOR THE BACK-END... 2 2.3 HOW TO RUN THE APPLICATION?... 3 2.4 HOW TO USE THE ANDROID APP?... 3 3. THE BACKEND (NODE.JS SERVERS)...5 3.1 BEFORE RUNNING THE SERVERS... 5 3.2 CONFIGURE THE BACKEND FOR FRONTEND... 5 3.3 INSTALL THE REQUIRED DEPENDENCIES AND MODULES... 6 3.4 CONFIGURE THE DATABASE... 7 3.5 CONFIGURE SOCKET.IO AND FIREBASE DETAILS... 8 3.6 RUNNING THE APPLICATION... 8

1. Introduction The purpose of this document is to give a guide to the user on how to download, run the backend (Node.js servers) and the frontend (app) systems. This document is divided into four sections; the first section provides the introductory information regarding the installation process and initial requirement. The second section will provide a step by step installation guide for the Android UI. The third section will provide a step by step installation guide for the backend (node.js). The last section will guide the reader through the process of Register, Login, search user, friend request, accept, reject, send and receive messages. At the end of the guide, the user will be able to run the backend code using Node.js and Mongo database and the front-end will be imported on Android studio. 2. The Frontend (Android UI) This represents a step by step on how to run the android application. Step 1 2.1 Before running the application These technologies must be installed or something similar https://developer.android.com/studio/index.html Once you have installed android studio on your respective machine by the following the instlattion guidance given. Step 2 Now you are ready to import the Android app code. import the code into Android studio using as follows. http://stackoverflow.com/questions/32197775/how-to-import-existing-java-project-into-androidstudio 1

2.2 Configure the app for the back-end Step 1 Locate the class constants from the the code. You can find this under the package maap/app/constants/. Step 2: Change the IP address. In order for the app to run on your device or emulator you need to configure the IP address that match your machine IP address. You can configure IP address for emulator using the following https://developer.android.com/studio/run/emulator-networking.html you need replace this these two IP address AS you can see, we have the IP address that matches our computer IP address and the socket address. So for instance if your machine address is xx.xx.x.20 you will replace that with this and followed by the port number 400 and 300. If you run the backend on a different port, then you need to change this as well. You can find your IP address by simply typing iconfig for Mac and ipconfig for windows 2

Please refer to the backend on how to change port number of the Express server and the socket.io. 2.3 How to run the application? Once you have changed the IP address in the constant class now you can install the app on your phone or emulator. To run the app simply go the run on the Android Studio and a window will open up. You can select which device that you want the app to be run on. 2.4 How to use the Android app? Once you have successfully installed the app on TWO different devices. The first thing you need to do is to Register new account as follows: You fill the required fields in both screens and will be brought to the next screen (Main screen) Next step: Friending and sending messages. Once you have logged in you will be brought to this screen 3

As you can see, you have number of option. you can send message to a friend but at the moment we don t have any friend so need to add some friends to exchange messages with. Next: you search for a user using (Phone number) and once you find him, you send him an invitation. Next he/she will accept that invitation and now you are ready to send message. 4

3. The Backend (Node.js servers) The backend is built purely on Node.js 3.1 Before running the servers Step 1 Before running this system, you need the following technologies. 1. Node.js If you haven t already installed Node.js on your system please visit https://nodejs.org/en/ to download for your OS. And https://howtonode.org/how-to-install-nodejs To install. 2. Mongo 3. If you haven t already installed Mongo database on your system please visit https://www.mongodb.com/ to download for your OS. And https://docs.mongodb.com/manual/installation/ on how to install. 4. A Text Editor Please use the desired text editor to make changes to the code so that you can run it. In my case, I used Sublime text https://www.sublimetext.com/ You can use any text editor that enable JavaScript editing. 3.2 Configure the backend for frontend Step 2 After you successfully install the required technologies, locate where you saved the backend code. Example, if you have saved the code in desktop directory you can use do this. cd desktop/ location of the code in my case chihabs-macbook-pro:maap-platform-backend chihab$ 5

Step 3 3.3 Install the required dependencies and modules All the required dependences and modules are located in the Package.JSON Open the terminal and after locating your project folder. Type: npm install You may need to install dependences individually. Example to install express server or socket.io you can do it like this If you are not familiar the NPM Function please read more on this from here https://docs.npmjs.com/cli/install Step 4 After you have successfully located the code via the Command line or the the OS terminal. The code directory will look like this 6

The (app) contain (controllers, models) etc. The app.js: is used to run the app The configs (allow you to configure socket.io port number, database URL etc). Node_modules (include all modules installed) Package.json is used to declare what module to be installed Routes: contains route to the express server, route to APIs Views: Contain a Jade file that prints message on the browser Step 5: 3.4 Configure the database Go the folder called (configs). Open the file database Change the database URL It will look something like this Replace it with your own And make sure that Mongo database is running already. 7

Step 6: 3.5 Configure socket.io and Firebase details Open up the same directory as the above and change the details. 3.6 Running the application to run the application all you need to do is to type npm start the result will be like this Which indicates that the backend is running on port 4000 And socket.io is running on port 3000 If you go the URL http://localhost:3000/ You should the above page. That means the backend is successfully configured. Please for demo link please visit the REAM.ME file in the project directory Congratulations. 8

9