-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
50 lines (39 loc) · 1.35 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
This file contains Installation and Configuration of OPP Event API
==================================================================
1) Check for the following programs
- Git (Application Version Control)
- Node.js and npm
- MySQL Server (if database within the same server)
- iisnode and urlrewrite2
- ARRv3_0
2) Install Node Process Manager PM2
> npm i -g pm2
3) Add Node Project to C:\applications folder
4) Add /public folder inside your project
5) Add (.env) file to "OPP Event API" and type the following:
# .env settings
NODE_ENV=development
PORT=3000
# app settings
APP_NAME=opp_event_server
APP_VERSION=1.0.0
# active directory settings
AD_HOST=ldap://<active-directory-domain>:<active-directory-port>
AD_BASE=DC=<domain-name>,DC=<domain-type>
AD_USER=<active-directory-user>
AD_PASS=<active-directory-pass>
# database settings
DB_HOST=<database-server-ip>
DB_USER=<database-user>
DB_PASS=<database-pass>
DB_NAME=<database-name>
# email settings
MAIL_HOST=<mail-server-ip>
MAIL_PORT=<mail-server-port>
MAIL_USER=<email-user>
MAIL_PASS=<email-pass>
6) Open CMD or PowerShell and type the following:
> cd C:\applications\<project_name>
> pm2 start app.js --name "OPP Event API"
(note): Make sure PM2 is running
7) Deploy Node App to IIS: