Vous êtes sur la page 1sur 11

SEND NETWORK

SDN BHD

Developers Environment Setup Guide

Page 1 of 11

Document Control
Version
1.0

Date
15-Nov-16

2.0

16-Nov-16

Author
Syeela,
Lawrence
Syeela,
Lawrence

Change Reference
Document Creation
Minor changes on the content.

Page 2 of 11

Contents
1 Prerequisites Software..........................................................................................................................................4
1.1 REPORT WIZARD................................................................................................................................................. 4
2 Source code............................................................................................................................................................. 5
2.1 MODULES............................................................................................................................................................. 5
3 Database setups..................................................................................................................................................... 6
4 IIS Setup.................................................................................................................................................................... 9
5 Project Setup......................................................................................................................................................... 10
6 Testing.....................................................................................................................................................................11

Page 3 of 11

1 Prerequisites Software

Please download below software and install on your computer


1.
2.
3.
4.

Visual Studio 2015 Community Edition (https://www.visualstudio.com/downloads/)


a) Report Wizard Intallation - Refer to 1.1 Report Wizard
SQL Server 2014 Express
SQL Server 2012 Express (https://www.microsoft.com/en-us/download/details.aspx?id=29062).
Just download the (ENU\x64\SqlLocalDB.MSI) component will do.
Git 64-bit (https://git-scm.com/download/win)

1.1 Report Wizard

During Visual Studio installation remember to check on Microsoft SQL Server Data Tools on feature tab,
by default it will be excluded. In case you already install the Visual Studio without including Microsoft SQL
Server Data Tools, just go to control panel > uninstall a program > search for Visual Studio 2015 > run it
and click on modify button > check on Microsoft SQL Server Data Tools and click update.

Page 4 of 11

2 Source code

In Send we are use GitLab with private repository setting, in order for you to be able to clone the
repository, please get it setup by your Team Lead and complete the account registration after invitation
email received.
Steps to clone source code
1. Open Git CMD and navigate to the source code folder.
2. Type git clone -b <branch_name> <Git Path> <folder_name_clone_to>
i. <branch_name> - confirm with your team lead
ii. <Git Path> - go into gitlab and click into your desire module then will see link as highlighted
below.

iii. <folder_name_clone_to> put module name and branch name i.e web-user-nov-2016 for
User portal on November release.

2.1 Modules

Basically, there are 3 Main modules in our system, the source code will break into few sub module as
shown below.
1)Web Module
a) web-user
b) web- admin
2)App Module
a) android-user
b) android-sender
c) ios-user
d) ios-sender
3)Database Module
a) sql-sendnet - contain stored prod and table creation script.

Page 5 of 11

3 Database setups

Once all the source code has been cloned to your local machine, now will continue with database set up.
Steps to setup database
1. Open sql-sendnet folder and run AddConnectionString.reg, then connection string will be
added into registry as shown below

2. Open SQLSendNet.sln file, right click on your project file and click on publish button.

Page 6 of 11

3. Publish database screen should prompted, click on edit button

4. select browse tab then click on local and select your local connection (normally should ended
with \SQLEXPRESS) and click ok.

Page 7 of 11

5.Once selected the connection string, type SendNET on the database name text box and click
publish. SendNet database will be created and you can check using SQL Server Management
Studio.

Page 8 of 11

4 IIS Setup

1. Go to Document folder and navigate to IISExpress > Config > applicationhost.config


2. Find the below code in applicationhost.config file and copy the code and paste the code after
the default one;
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
</site>
For name, preferably to put it same like source code folder name
i.e. web-user-nov-2016
For ID, must change it to others unique id.
For physicalPath, replace with your physical folder path.
Eg:physicalPath="C:\Source Code\webuser\Web-User"
For bindingInformation, replace with bindingInformation="*:54099:localhost"

Page 9 of 11

5 Project Setup

When open web module (web-admin or web-user) project file for first time, open the system.xml in
app_data folder. Then you should code highlighted at below

You have to remove the comment for <jpm-member-token>, then save and rebuild your project.

** Please take note when you commit your source code the <jpm-member-token> have to be
comment back, it only used for local machine testing purpose.

Page 10 of 11

6 Testing

Now you can test your set up by acess to http://localhost:54099/login.aspx or you can run your project by
click on play button in visual studio.
For web-user login
Username: user or partner or merchant or intsend or extsend
Password: 123
Notes: Every new set of database itll be included with 5 username and password: user, partner,
merchant, intsender and extsender for User portal.
For web-admin login
Username: administrator
Password: 12345

Page 11 of 11

Vous aimerez peut-être aussi