Skip to content

Commit

Permalink
finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
tenusha committed May 18, 2019
1 parent bb17062 commit fb69d13
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,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)
4 changes: 2 additions & 2 deletions db-script.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
user railway;
use railway;

db.routes.insert({name:"main-line",route:[{name:"Badulla", fair:0},
{name:"Hali Ela", fair:20},
Expand Down Expand Up @@ -100,7 +100,7 @@ db.schedules.insert({time:"11.00 pm"});


db.cards.insert({card:"1234123412341234", cvc:"123" ,exp:"12/12"});
db.cards.insert({card:"1", cvc:"1" ,exp:"1"});
db.cards.insert({card:"1111111111111111", cvc:"111" ,exp:"11/11"});



Expand Down
Binary file modified report/Report.docx
Binary file not shown.
Binary file modified report/Report.pdf
Binary file not shown.

1 comment on commit fb69d13

@fahad7323
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to aaply 3 section

Please sign in to comment.