-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
fb69d13
There was a problem hiding this comment.
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