You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linux_setup.sh 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. # wget https://git.bbh.org.in/chess/elxr/raw/branch/master/linux_setup.sh
  2. #STORE GIT CREDENTIALS IN CACHE
  3. sudo yum install git
  4. # git config --global --unset credential.helper
  5. git config --global credential.helper store
  6. # git config --global credential.helper 'store --file ~/.git-credentials'
  7. # echo "Enter git username: "
  8. # read gitUser
  9. # echo "username=$gitUser" >> ~/.git-credentials
  10. # echo "Enter git password: "
  11. # read gitPassword
  12. # echo "password=$gitPassword" >> ~/.git-credentials
  13. # chmod 0600 ~/.git-credentials
  14. # Install prerequisites
  15. #NODE JS 16.17.1
  16. wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz
  17. tar -xf node-v16.17.1-linux-x64.tar.xz
  18. # Move the extracted folder to /usr/local/lib
  19. sudo mv node-v16.17.1-linux-x64 /usr/local/lib/
  20. # Create a symbolic link to the node executable
  21. sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node
  22. node -v
  23. #NPM
  24. sudo yum install npm
  25. #INSTALLING NODE JS
  26. npm install -g pm2
  27. npm install -g ember-cli
  28. npm install -g loopback-cli
  29. #development A SETUP
  30. cd ~
  31. cd Desktop
  32. mkdir chess
  33. cd chess
  34. mkdir development_A
  35. cd development_A
  36. git clone http://git.bbh.org.in/chess/cihsr-config-development
  37. cd cihsr-config-development
  38. git checkout master
  39. npm i --force
  40. #TO CREATE SYMLINK
  41. cd ..
  42. ln -s cihsr-config-development/ config
  43. git clone http://git.bbh.org.in/chess/cihsr-data
  44. cd cihsr-data
  45. git checkout master
  46. npm i --force
  47. cd ..
  48. ln -s cihsr-data/ data
  49. git clone http://git.bbh.org.in/chess/ember-masonry-grid
  50. cd ember-masonry-grid
  51. git checkout master
  52. npm i --force
  53. cd ..
  54. git clone http://git.bbh.org.in/chess/bbhverse
  55. cd bbhverse
  56. git checkout master
  57. npm i --force
  58. cd ..
  59. git clone http://git.bbh.org.in/chess/clientverse
  60. cd clientverse
  61. git checkout master
  62. npm i --force
  63. cd ..
  64. git clone http://git.bbh.org.in/chess/serververse
  65. cd serververse
  66. git checkout master
  67. npm i --force
  68. cd ..
  69. git clone http://git.bbh.org.in/chess/elxr
  70. cd elxr
  71. git checkout master
  72. npm i --force
  73. cd ..
  74. git clone http://git.bbh.org.in/chess/ember-searchable-select
  75. cd ember-searchable-select
  76. git checkout master
  77. npm i --force
  78. cd ..
  79. git clone http://git.bbh.org.in/chess/loopback-component-jsonapi
  80. cd loopback-component-jsonapi
  81. git checkout master
  82. npm i --force
  83. cd ..
  84. git clone http://git.bbh.org.in/chess/loopback-jsonapi-model-serializer
  85. cd loopback-jsonapi-model-serializer
  86. git checkout master
  87. npm i --force
  88. npm run build
  89. cd ..
  90. git clone http://git.bbh.org.in/chess/loopback-connector-mysql
  91. cd loopback-connector-mysql
  92. git checkout master
  93. npm i --force
  94. cd ..
  95. git clone http://git.bbh.org.in/chess/loopback-connector-ds
  96. cd loopback-connector-ds
  97. git checkout master
  98. npm i --force
  99. cd ..
  100. git clone http://git.bbh.org.in/chess/setup
  101. cd setup
  102. git checkout master
  103. npm i --force
  104. cd ..
  105. git clone http://git.bbh.org.in/chess/ember-service-worker
  106. cd ember-service-worker
  107. git checkout master
  108. npm i --force
  109. cd ..
  110. git clone http://git.bbh.org.in/chess/ember-service-worker-asset-cache
  111. cd ember-service-worker-asset-cache
  112. git checkout master
  113. npm i --force
  114. cd ..
  115. git clone http://git.bbh.org.in/chess/ember-service-worker-cache-fallback
  116. cd ember-service-worker-cache-fallback
  117. git checkout master
  118. npm i --force
  119. cd ..
  120. git clone http://git.bbh.org.in/chess/ember-service-worker-index
  121. cd ember-service-worker-index
  122. git checkout master
  123. npm i --force
  124. cd ..
  125. git clone http://git.bbh.org.in/chess/ember-sw-client-route
  126. cd ember-sw-client-route
  127. git checkout master
  128. npm i --force
  129. cd ..
  130. git clone http://git.bbh.org.in/chess/global-this
  131. cd global-this
  132. git checkout master
  133. npm i --force
  134. cd ..
  135. git clone http://git.bbh.org.in/chess/ember-cp-validations
  136. cd ember-cp-validations
  137. git checkout master
  138. npm i --force
  139. cd ..
  140. git clone http://git.bbh.org.in/chess/loopback-connector
  141. cd loopback-connector
  142. git checkout master
  143. npm i --force
  144. cd ..
  145. git clone http://git.bbh.org.in/chess/loopback
  146. cd loopback
  147. git checkout master
  148. npm i --force
  149. cd ..
  150. git clone http://git.bbh.org.in/chess/loopback-datasource-juggler
  151. cd loopback-datasource-juggler
  152. git checkout master
  153. npm i --force
  154. cd ..
  155. git clone http://git.bbh.org.in/chess/loopback-connector-mssql
  156. cd loopback-connector-mssql
  157. git checkout master
  158. npm i --force
  159. cd ..
  160. git clone http://git.bbh.org.in/chess/loopback-filters
  161. cd loopback-filters
  162. git checkout master
  163. npm i --force
  164. cd ..
  165. git clone http://git.bbh.org.in/chess/loopback-connector-sqlite3
  166. cd loopback-connector-sqlite3
  167. git checkout master
  168. npm i --force
  169. cd ..
  170. git clone http://git.bbh.org.in/chess/chess-server-lib
  171. cd chess-server-lib
  172. git checkout master
  173. npm i --force
  174. cd server
  175. npm i --force
  176. cd ..
  177. cd ..
  178. git clone http://git.bbh.org.in/chess/cihsr-server
  179. cd cihsr-server
  180. git checkout master
  181. npm i --force
  182. cd ..
  183. git clone http://git.bbh.org.in/chess/bbh_patient_portal
  184. cd bbh_patient_portal
  185. git checkout master
  186. npm i --force
  187. cd ..
  188. git clone http://git.bbh.org.in/chess/project-genesis-frontend
  189. cd project-genesis-frontend
  190. git checkout master
  191. npm i --force
  192. cd ..
  193. git clone http://git.bbh.org.in/chess/project-genesis-backend
  194. cd project-genesis-backend
  195. git checkout master
  196. npm i --force
  197. cd ..
  198. git clone http://git.bbh.org.in/chess/processmanager
  199. cd processmanager
  200. git checkout master
  201. npm i --force
  202. cd ..
  203. git clone http://git.bbh.org.in/chess/client
  204. cd client
  205. git checkout master
  206. npm i --force
  207. bower install
  208. node_modules/.bin/bower install
  209. cd ..
  210. git clone http://git.bbh.org.in/chess/chess-client-lib
  211. cd chess-client-lib
  212. git checkout master
  213. npm i --force
  214. cd ..
  215. git clone http://git.bbh.org.in/chess/elixir-client
  216. cd elixir-client
  217. git checkout master
  218. npm i --force
  219. cd chess-client-lib
  220. npm i --force
  221. cd ..