-
Notifications
You must be signed in to change notification settings - Fork 17
/
README.txt
76 lines (32 loc) · 2 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
----Steps to Deploy----
1) creating the database
- The application require mongoDB as the database
- Run the mongoDB and execute the code in "db-script.txt". (copy the content and paste to mongo.exe cmd)
- "db-script.txt" file mainly contains railway routes, credit card and mobile phone details (user payment details validated with this data)
and government employee data.
- database name should be "railway" and database creation is also included in "db-script.txt"
2) deploy back-end services
- go inside services folder
- run "npm install" using cmd
- after installing node modules, edit the "config.json" file if your configurations are different.
(eg: if you have the database in seperate server, change the database config in the config.json file) more details available in the report.
- then execute the command, "node index.js"
- then the back-end services will be started in port 3001
3) deploy WSO2 EI
- go inside "wso2-ei/RailwayESBDist/target" folder
- copy the RailwayESBDist_1.0.0.car file to the WSO2 server.
- the folder to copy the above car file in the server looks like "6.4.0/repository/deployment/server/carbonapps"
- If you want to create new .car file, open three projects inside "wso2-ei" folder using Eclipse Developer Studio.
- Three projects are,
- RailwayESB -> maven multi module project
- RailwayESBConfig -> ESB config project
- RailwayESBDist -> composite application project
- right click on "RailwayESBDist" and click Export Composite Application Project and export the .car file
- go WSO2 management console and ensure all the APIs and Endpoints are deployed.
4) deploy front-end
- go inside "web" folder
- run "npm install" using cmd
- once the node modules are installed, ensure the base url in "src/config.json" file is valid.
(base url should be the where wso2 server's APIs are hosted)
- then execute the command, "npm start"
5) Then you are ready to use the web application. (localhost:3000)