Skip to content
Permalink
Browse files

initial commit (backend + shared)

  • Loading branch information...
evereq committed Jan 19, 2019
1 parent 2aa14d4 commit e35aeca941b4a41687ac90622f7f7bd3e6219252
Showing with 27,746 additions and 67 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 .travis.yml
  3. +8 −0 backend/api/.dockerignore
  4. +8 −0 backend/api/.ebextensions/logging.config
  5. +4 −0 backend/api/.ebextensions/nodecommand.config
  6. +1 −0 backend/api/.ebignore
  7. +14 −0 backend/api/.elasticbeanstalk/config.yml
  8. +56 −0 backend/api/.env.template
  9. +74 −0 backend/api/.gitignore
  10. +30 −0 backend/api/Dockerfile
  11. +26 −0 backend/api/docker/dev/docker-compose.yml
  12. +8 −0 backend/api/docker/prod/docker-compose.yml
  13. +35 −0 backend/api/graphql.config.json
  14. +25 −0 backend/api/jest.config.js
  15. +3 −1 backend/api/package.json
  16. +83 −0 backend/api/res/templates/about_us/bg-BG.hbs
  17. +70 −0 backend/api/res/templates/about_us/en-US.hbs
  18. +66 −0 backend/api/res/templates/about_us/he-IL.hbs
  19. +63 −0 backend/api/res/templates/about_us/ru-RU.hbs
  20. +25 −0 backend/api/res/templates/privacy/bg-BG.hbs
  21. +25 −0 backend/api/res/templates/privacy/en-US.hbs
  22. +25 −0 backend/api/res/templates/privacy/he-IL.hbs
  23. +24 −0 backend/api/res/templates/privacy/ru-RU.hbs
  24. +2,678 −0 backend/api/res/templates/terms_of_use/bg-BG.hbs
  25. +1,242 −0 backend/api/res/templates/terms_of_use/en-US.hbs
  26. +1,242 −0 backend/api/res/templates/terms_of_use/he-IL.hbs
  27. +1,242 −0 backend/api/res/templates/terms_of_use/ru-RU.hbs
  28. +18 −0 backend/api/res/templates/user_products_placeholder.hbs
  29. +14 −0 backend/api/res/templates/user_products_placeholder.json
  30. +1 −0 backend/api/res/views/about_us_bg.hbs
  31. +1 −0 backend/api/res/views/about_us_en.hbs
  32. +1 −0 backend/api/res/views/about_us_he.hbs
  33. +1 −0 backend/api/res/views/about_us_ru.hbs
  34. +8 −0 backend/api/res/views/index.hbs
  35. +32 −0 backend/api/res/views/layouts/main.hbs
  36. +1 −0 backend/api/res/views/privacy_bg.hbs
  37. +1 −0 backend/api/res/views/privacy_en.hbs
  38. +1 −0 backend/api/res/views/privacy_he.hbs
  39. +1 −0 backend/api/res/views/privacy_ru.hbs
  40. +1 −0 backend/api/res/views/terms_of_use_bg.hbs
  41. +1 −0 backend/api/res/views/terms_of_use_en.hbs
  42. +1 −0 backend/api/res/views/terms_of_use_he.hbs
  43. +1 −0 backend/api/res/views/terms_of_use_ru.hbs
  44. +20 −0 backend/api/src/@pyro/db-server/Model.ts
  45. +560 −0 backend/api/src/@pyro/db-server/db-service.ts
  46. +33 −0 backend/api/src/@pyro/db-server/entity-service.ts
  47. +40 −0 backend/api/src/@pyro/db-server/existence.ts
  48. +48 −0 backend/api/src/@pyro/db-server/i-db-service.ts
  49. +4 −0 backend/api/src/@pyro/db-server/index.ts
  50. +83 −0 backend/api/src/@pyro/io/connection-handler.ts
  51. +5 −0 backend/api/src/@pyro/io/index.ts
  52. +6 −0 backend/api/src/@pyro/io/listener/async.ts
  53. +55 −0 backend/api/src/@pyro/io/listener/handler/async.ts
  54. +69 −0 backend/api/src/@pyro/io/listener/handler/base.ts
  55. +3 −0 backend/api/src/@pyro/io/listener/handler/handler.ts
  56. +74 −0 backend/api/src/@pyro/io/listener/handler/observable.ts
  57. +39 −0 backend/api/src/@pyro/io/listener/listener.ts
  58. +4 −0 backend/api/src/@pyro/io/listener/metadata.ts
  59. +7 −0 backend/api/src/@pyro/io/listener/observable.ts
  60. +40 −0 backend/api/src/@pyro/io/listener/serialization.ts
  61. +4 −0 backend/api/src/@pyro/io/listener/types.ts
  62. +43 −0 backend/api/src/@pyro/io/router/handler.ts
  63. +5 −0 backend/api/src/@pyro/io/router/metadata.ts
  64. +17 −0 backend/api/src/@pyro/io/router/router.ts
  65. +34 −0 backend/api/src/@pyro/io/routers-manager.ts
  66. +209 −0 backend/api/src/app.module.ts
  67. +9 −0 backend/api/src/auth/auth.module.ts
  68. +25 −0 backend/api/src/auth/jwt.strategy.ts
  69. +13 −0 backend/api/src/config/config.module.ts
  70. +23 −0 backend/api/src/config/config.service.ts
  71. +14 −0 backend/api/src/controllers/auth/auth.controller.ts
  72. +12 −0 backend/api/src/controllers/auth/auth.module.ts
  73. +30 −0 backend/api/src/controllers/auth/auth.service.ts
  74. +23 −0 backend/api/src/controllers/auth/http.strategy.ts
  75. +26 −0 backend/api/src/controllers/auth/jwt.strategy.ts
  76. +25 −0 backend/api/src/controllers/product/ProductsDto.ts
  77. +52 −0 backend/api/src/controllers/product/product.controller.ts
  78. +7 −0 backend/api/src/controllers/product/product.module.ts
  79. +17 −0 backend/api/src/controllers/test.controller.ts
  80. +145 −0 backend/api/src/env.ts
  81. +70 −0 backend/api/src/graphql/admin/admin.resolver.ts
  82. +7 −0 backend/api/src/graphql/admin/admins.module.ts
  83. +53 −0 backend/api/src/graphql/admin/admins.types.graphql
  84. +7 −0 backend/api/src/graphql/carriers-orders/carriers-orders.module.ts
  85. +59 −0 backend/api/src/graphql/carriers-orders/carriers-orders.resolver.ts
  86. +75 −0 backend/api/src/graphql/carriers-orders/carriers-orders.types.graphql
  87. +153 −0 backend/api/src/graphql/carriers/carrier.resolver.ts
  88. +7 −0 backend/api/src/graphql/carriers/carriers.module.ts
  89. +130 −0 backend/api/src/graphql/carriers/carriers.types.graphql
  90. +7 −0 backend/api/src/graphql/data/data.module.ts
  91. +60 −0 backend/api/src/graphql/data/data.resolver.ts
  92. +3 −0 backend/api/src/graphql/data/data.types.graphql
  93. +95 −0 backend/api/src/graphql/devices/device.resolver.ts
  94. +7 −0 backend/api/src/graphql/devices/devices.module.ts
  95. +61 −0 backend/api/src/graphql/devices/devices.types.graphql
  96. +22 −0 backend/api/src/graphql/geo-locations/geo-location.resolver.ts
  97. +69 −0 backend/api/src/graphql/geo-locations/geo-locations.graphql
  98. +7 −0 backend/api/src/graphql/geo-locations/geo-locations.module.ts
  99. +7 −0 backend/api/src/graphql/geo-locations/orders/geo-location-orders.module.ts
  100. +80 −0 backend/api/src/graphql/geo-locations/orders/geo-location-orders.resolver.ts
  101. +36 −0 backend/api/src/graphql/geo-locations/orders/geo-locations-orders.graphql
  102. +7 −0 backend/api/src/graphql/invites-requests/invites-requests.module.ts
  103. +114 −0 backend/api/src/graphql/invites-requests/invites-requests.resolver.ts
  104. +76 −0 backend/api/src/graphql/invites-requests/invites-requests.types.graphql
  105. +121 −0 backend/api/src/graphql/invites/invite.resolver.ts
  106. +7 −0 backend/api/src/graphql/invites/invites.module.ts
  107. +73 −0 backend/api/src/graphql/invites/invites.types.graphql
  108. +784 −0 backend/api/src/graphql/orders/order.resolver.ts
  109. +7 −0 backend/api/src/graphql/orders/orders.module.ts
  110. +181 −0 backend/api/src/graphql/orders/orders.types.graphql
  111. +7 −0 backend/api/src/graphql/products/categories/products-categories.module.ts
  112. +47 −0 backend/api/src/graphql/products/categories/products-categories.types.graphql
  113. +61 −0 backend/api/src/graphql/products/categories/products-category.resolver.ts
  114. +95 −0 backend/api/src/graphql/products/product.resolver.ts
  115. +9 −0 backend/api/src/graphql/products/products.module.ts
  116. +96 −0 backend/api/src/graphql/products/products.types.graphql
  117. +1 −0 backend/api/src/graphql/scalars/any.type.graphql
  118. +1 −0 backend/api/src/graphql/scalars/date.type.graphql
  119. +18 −0 backend/api/src/graphql/scalars/date.type.graphql.ts
  120. +2 −0 backend/api/src/graphql/scalars/index.ts
  121. +5 −0 backend/api/src/graphql/scalars/scalars.ts
  122. +1 −0 backend/api/src/graphql/scalars/void.type.graphql
  123. +1 −0 backend/api/src/graphql/subscriptions/subscription.constants.ts
  124. +15 −0 backend/api/src/graphql/subscriptions/subscription.providers.ts
  125. +18 −0 backend/api/src/graphql/subscriptions/subscriptions.module.ts
  126. +36 −0 backend/api/src/graphql/subscriptions/subscriptions.service.ts
  127. +194 −0 backend/api/src/graphql/users/user.resolver.ts
  128. +7 −0 backend/api/src/graphql/users/users.module.ts
  129. +142 −0 backend/api/src/graphql/users/users.types.graphql
  130. +8 −0 backend/api/src/graphql/warehouses-carriers/warehouses-carriers.module.ts
  131. +20 −0 backend/api/src/graphql/warehouses-carriers/warehouses-carriers.resolver.ts
  132. +3 −0 backend/api/src/graphql/warehouses-carriers/warehouses-carriers.types.graphql
  133. +8 −0 backend/api/src/graphql/warehouses-orders/warehouses-orders.module.ts
  134. +96 −0 backend/api/src/graphql/warehouses-orders/warehouses-orders.resolver.ts
  135. +42 −0 backend/api/src/graphql/warehouses-orders/warehouses-orders.types.graphql
  136. +66 −0 backend/api/src/graphql/warehouses-products/warehouse-products.resolver.ts
  137. +8 −0 backend/api/src/graphql/warehouses-products/warehouses-products.modules.ts
  138. +53 −0 backend/api/src/graphql/warehouses-products/warehouses-products.types.graphql
  139. +284 −0 backend/api/src/graphql/warehouses/warehouse.resolver.ts
  140. +9 −0 backend/api/src/graphql/warehouses/warehouses.module.ts
  141. +192 −0 backend/api/src/graphql/warehouses/warehouses.types.graphql
  142. +96 −0 backend/api/src/helpers/Log.ts
  143. +18 −0 backend/api/src/helpers/NestJSLogger.ts
  144. +77 −0 backend/api/src/main.ts
  145. +47 −0 backend/api/src/nest-bootstrap.ts
  146. +139 −0 backend/api/src/pm2bootstrap.ts
  147. +7 −0 backend/api/src/routes/index.ts
  148. +5 −0 backend/api/src/services/IService.ts
  149. +142 −0 backend/api/src/services/admins/AdminsService.ts
  150. +1 −0 backend/api/src/services/admins/index.ts
  151. +165 −0 backend/api/src/services/auth/AuthService.ts
  152. +55 −0 backend/api/src/services/auth/AuthenticationService.ts
  153. +2 −0 backend/api/src/services/auth/index.ts
  154. +431 −0 backend/api/src/services/carriers/CarriersOrdersService.ts
  155. +205 −0 backend/api/src/services/carriers/CarriersService.ts
  156. +2 −0 backend/api/src/services/carriers/index.ts
  157. +72 −0 backend/api/src/services/devices/DevicesService.ts
  158. +1 −0 backend/api/src/services/devices/index.ts
  159. +504 −0 backend/api/src/services/fake-data/FakeOrdersService.ts
  160. +5 −0 backend/api/src/services/geo-locations/GeoLocationOrdersOptions.ts
  161. +270 −0 backend/api/src/services/geo-locations/GeoLocationsOrdersService.ts
  162. +99 −0 backend/api/src/services/geo-locations/GeoLocationsProductsService.ts
  163. +119 −0 backend/api/src/services/geo-locations/GeoLocationsService.ts
  164. +210 −0 backend/api/src/services/geo-locations/GeoLocationsWarehousesService.ts
  165. +5 −0 backend/api/src/services/geo-locations/index.ts
  166. +123 −0 backend/api/src/services/inversify.config.ts
  167. +364 −0 backend/api/src/services/invites/InvitesRequestsService.ts
  168. +298 −0 backend/api/src/services/invites/InvitesService.ts
  169. +2 −0 backend/api/src/services/invites/index.ts
  170. +906 −0 backend/api/src/services/orders/OrdersService.ts
  171. +1 −0 backend/api/src/services/orders/index.ts
  172. +96 −0 backend/api/src/services/products/ProductsCategoriesService.ts
  173. +99 −0 backend/api/src/services/products/ProductsService.ts
  174. +2 −0 backend/api/src/services/products/index.ts
  175. +510 −0 backend/api/src/services/services.app.ts
  176. +23 −0 backend/api/src/services/services.module.ts
  177. +44 −0 backend/api/src/services/users/SocialRegisterService.ts
  178. +56 −0 backend/api/src/services/users/SocialStrategiesService.ts
  179. +71 −0 backend/api/src/services/users/UserCommandService.ts
  180. +221 −0 backend/api/src/services/users/UsersAuthService.ts
  181. +99 −0 backend/api/src/services/users/UsersOrdersService.ts
  182. +103 −0 backend/api/src/services/users/UsersProductsService.ts
  183. +509 −0 backend/api/src/services/users/UsersService.ts
  184. +7 −0 backend/api/src/services/users/index.ts
  185. +74 −0 backend/api/src/services/warehouses/WarehousesCarriersService.ts
  186. +589 −0 backend/api/src/services/warehouses/WarehousesOrdersService.ts
  187. +599 −0 backend/api/src/services/warehouses/WarehousesProductsService.ts
  188. +321 −0 backend/api/src/services/warehouses/WarehousesService.ts
  189. +78 −0 backend/api/src/services/warehouses/WarehousesUsersService.ts
  190. +5 −0 backend/api/src/services/warehouses/index.ts
  191. +150 −0 backend/api/src/test/integration/GeoLocationWarehouses.spec.ts
  192. +9 −0 backend/api/src/test/integration/GeoLocations.spec.ts
  193. +6 −0 backend/api/src/test/loggerMock.ts
  194. +52 −0 backend/api/src/test/setup.ts
  195. +183 −0 backend/api/src/test/unit/pyro/pyro.db.server-test.ts
  196. +77 −0 backend/api/src/test/unit/services/InvitesService-test.ts
  197. +50 −0 backend/api/src/utils.ts
  198. +25 −0 backend/api/tsconfig.json
  199. +122 −0 backend/api/tslint.json
  200. +34 −34 backend/api/webpack.config.js
  201. +76 −5 backend/api/yarn.lock
  202. +13 −13 greenkeeper.json
  203. +4 −2 package.json
  204. +3 −0 shared/core/.gitignore
  205. +8 −0 shared/core/@pyro/db/db-create-object.ts
  206. +4 −0 shared/core/@pyro/db/db-find-object.ts
  207. +85 −0 shared/core/@pyro/db/db-object.ts
  208. +14 −0 shared/core/@pyro/db/db-raw-object.ts
  209. +4 −0 shared/core/@pyro/db/db-update-object.ts
  210. +7 −0 shared/core/@pyro/db/index.ts
  211. +7 −0 shared/core/@pyro/db/model.ts
  212. +3 −0 shared/core/@pyro/db/object-id.ts
  213. +91 −0 shared/core/@pyro/db/schema.ts
  214. +47 −0 shared/core/@pyro/db/types.ts
  215. +27 −0 shared/core/StorageService.ts
  216. +11 −0 shared/core/consts/consts.ts
  217. +252 −0 shared/core/data/abbreviation-to-country.ts
  218. +254 −0 shared/core/data/countries.json
  219. +281 −0 shared/core/data/food-product-names.ts
  220. +133 −0 shared/core/data/image-urls.ts
  221. +99 −0 shared/core/entities/Admin.ts
  222. +226 −0 shared/core/entities/Carrier.ts
  223. +63 −0 shared/core/entities/Device.ts
  224. +610 −0 shared/core/entities/GeoLocation.ts
  225. +71 −0 shared/core/entities/Invite.ts
  226. +129 −0 shared/core/entities/InviteRequest.ts
  227. +431 −0 shared/core/entities/Order.ts
  228. +115 −0 shared/core/entities/OrderProduct.ts
  229. +97 −0 shared/core/entities/Product.ts
  230. +69 −0 shared/core/entities/ProductInfo.ts
  231. +48 −0 shared/core/entities/ProductsCategory.ts
  232. +171 −0 shared/core/entities/User.ts
  233. +163 −0 shared/core/entities/UserOrder.ts
  234. +257 −0 shared/core/entities/Warehouse.ts
  235. +158 −0 shared/core/entities/WarehouseProduct.ts
  236. +15 −0 shared/core/entities/index.ts
  237. +25 −0 shared/core/enums/CarrierStatus.ts
  238. +12 −0 shared/core/enums/DeliveryType.ts
  239. +13 −0 shared/core/enums/ForwardOrdersMethod.ts
  240. +83 −0 shared/core/enums/OrderCarrierStatus.ts
  241. +17 −0 shared/core/enums/OrderStatus.ts
  242. +98 −0 shared/core/enums/OrderWarehouseStatus.ts
  243. +7 −0 shared/core/enums/RegistrationSystem.ts
  244. +4 −0 shared/core/errors/NotFoundError.ts
  245. +4 −0 shared/core/errors/NotInvitedError.ts
  246. +4 −0 shared/core/errors/WrongPasswordError.ts
  247. +46 −0 shared/core/interfaces/IAdmin.ts
  248. +66 −0 shared/core/interfaces/ICarrier.ts
  249. +15 −0 shared/core/interfaces/IDevice.ts
  250. +16 −0 shared/core/interfaces/IEnterByCode.ts
  251. +27 −0 shared/core/interfaces/IEnterByLocation.ts
  252. +46 −0 shared/core/interfaces/IGeoLocation.ts
  253. +26 −0 shared/core/interfaces/IInvite.ts
  254. +30 −0 shared/core/interfaces/IInviteRequest.ts
  255. +4 −0 shared/core/interfaces/ILanguage.ts
  256. +10 −0 shared/core/interfaces/ILocale.ts
  257. +149 −0 shared/core/interfaces/IOrder.ts
  258. +53 −0 shared/core/interfaces/IOrderProduct.ts
  259. +8 −0 shared/core/interfaces/IOrderProductInfo.ts
  260. +5 −0 shared/core/interfaces/IPagingOptions.ts
  261. +4 −0 shared/core/interfaces/IPlatform.ts
  262. +39 −0 shared/core/interfaces/IProduct.ts
  263. +25 −0 shared/core/interfaces/IProductInfo.ts
  264. +20 −0 shared/core/interfaces/IProductsCategory.ts
  265. +9 −0 shared/core/interfaces/IStreetLocation.ts
  266. +33 −0 shared/core/interfaces/IUser.ts
  267. +30 −0 shared/core/interfaces/IUserOrder.ts
  268. +126 −0 shared/core/interfaces/IWarehouse.ts
  269. +107 −0 shared/core/interfaces/IWarehouseProduct.ts
  270. +20 −0 shared/core/notifications.ts
  271. +23 −0 shared/core/routers/IAdminRouter.ts
  272. +49 −0 shared/core/routers/ICarrierOrdersRouter.ts
  273. +52 −0 shared/core/routers/ICarrierRouter.ts
  274. +19 −0 shared/core/routers/IDeviceRouter.ts
  275. +17 −0 shared/core/routers/IGeoLocationOrdersRouter.ts
  276. +9 −0 shared/core/routers/IGeoLocationProductsRouter.ts
  277. +17 −0 shared/core/routers/IGeoLocationWarehousesRouter.ts
  278. +8 −0 shared/core/routers/IGeoLocationsRouter.ts
  279. +11 −0 shared/core/routers/IInviteRequestRouter.ts
  280. +22 −0 shared/core/routers/IInviteRouter.ts
  281. +43 −0 shared/core/routers/IOrderRouter.ts
  282. +20 −0 shared/core/routers/IProductRouter.ts
  283. +21 −0 shared/core/routers/IProductsCategoryRouter.ts
  284. +54 −0 shared/core/routers/IUserAuthRouter.ts
  285. +9 −0 shared/core/routers/IUserOrdersRouter.ts
  286. +12 −0 shared/core/routers/IUserProductsRouter.ts
  287. +34 −0 shared/core/routers/IUserRouter.ts
  288. +9 −0 shared/core/routers/IWarehouseCarriersRouter.ts
  289. +45 −0 shared/core/routers/IWarehouseOrdersRouter.ts
  290. +60 −0 shared/core/routers/IWarehouseProductsRouter.ts
  291. +46 −0 shared/core/routers/IWarehouseRouter.ts
  292. +9 −0 shared/core/routers/IWarehouseUsersRouter.ts
  293. +42 −0 shared/core/tsconfig.json
  294. +122 −0 shared/core/tslint.json
  295. +154 −0 shared/core/utils.ts
  296. +38 −4 tslint.json
  297. +72 −6 yarn.lock
@@ -39,3 +39,4 @@ testem.log
# System Files
.DS_Store
Thumbs.db
/admin/website-angular/yarn-error.log
@@ -43,8 +43,8 @@ matrix:
- env: PROJECT=shop/mobile-ionic
- env: PROJECT=shop/website-angular
- env: PROJECT=merchant/tablet-ionic
before_script:

before_script:
- cd $PROJECT

script:
@@ -0,0 +1,8 @@
.git
.gitignore
.gitmodules
README.md
docker
node_modules
tmp
build
@@ -0,0 +1,8 @@
files:
"/opt/elasticbeanstalk/tasks/bundlelogs.d/api.conf":
content: |
/tmp/logs*

"/opt/elasticbeanstalk/tasks/taillogs.d/api.conf":
content: |
/tmp/logs/*.log
@@ -0,0 +1,4 @@
option_settings:
- namespace: aws:elasticbeanstalk:container:nodejs
option_name: NodeCommand
value: "npm run-script prod"
@@ -0,0 +1 @@
node_modules/
@@ -0,0 +1,14 @@
branch-defaults:
master:
environment: ever-api-env
environment-defaults:
ever-api-env:
branch: null
repository: null
global:
application_name: api
default_ec2_keyname: ever
default_platform: 64bit Amazon Linux 2016.03 v2.1.3 running Node.js
default_region: us-east-1
profile: null
sc: git
@@ -0,0 +1,56 @@
# Don't forget to update src/env.ts on changes

NODE_ENV=production|development|test

HTTPPORT=5500
HTTPSPORT=5501
GQLPORT=5555
GQLPORT_SUBSCRIPTIONS=5050

HTTPS_CERT_PATH=certificates/https/cert.pem
HTTPS_KEY_PATH=certificates/https/key.pem

LOGS_PATH=./tmp/logs

DB_URI=mongodb://localhost/ever_development
TESTING_DB_URI=mongodb://localhost/ever_testing

STRIPE_SECRET_KEY=[SOME SORT OF STRING KEY]

URBAN_AIRSHIP_KEY=[SOME SORT OF STRING KEY]
URBAN_AIRSHIP_SECRET=[SOME SORT OF STRING KEY]

AWS_ACCESS_KEY_ID=[SOME SORT OF STRING KEY]
AWS_SECRET_ACCESS_KEY=[SOME SORT OF STRING KEY]

KEYMETRICS_MACHINE_NAME=[MACHINE NAME]
KEYMETRICS_SECRET_KEY=[SOME SORT OF STRING KEY]
KEYMETRICS_PUBLIC_KEY=[SOME SORT OF STRING KEY]

GOOGLE_APP_ID=[SOME SORT OF STRING KEY]
GOOGLE_APP_SECRET=[SOME SORT OF STRING KEY]

FACEBOOK_APP_ID=[SOME SORT OF STRING KEY]
FACEBOOK_APP_SECRET=[SOME SORT OF STRING KEY]

JWT_SECRET=[SOME SORT OF STRING SECRET]
ADMIN_PASSWORD_BCRYPT_SALT_ROUNDS=12
WAREHOUSE_PASSWORD_BCRYPT_SALT_ROUNDS=12
CARRIER_PASSWORD_BCRYPT_SALT_ROUNDS=12
USER_PASSWORD_BCRYPT_SALT_ROUNDS=10

SETTING_INVITES_ENABLED=false
FAKE_INVITE_CODE=8321

SETTINGS_REGISTRATIONS_REQUIRED_ON_START=false

ARCGIS_CLIENT_ID=[SOME SORT OF STRING KEY]
ARCGIS_CLIENT_SECRET=[SOME SORT OF STRING SECRET]

WEB_MEMORY=4096
WEB_CONCURRENCY=1

LOG_LEVEL= trace|debug|info|warn|error|fatal

# Apollo Engine Key (optional, see https://www.apollographql.com/docs/platform/schema-registry)
ENGINE_API_KEY=service:XXXXX:XXXXXXXX
@@ -0,0 +1,74 @@
# Project specific
node_modules_backup
backup
certificates

**/*.js
**/*.js.map
dist

# Hot module reload configuration
!webpack.config.js

# Testing
!jest.config.js
!src/test/setup.js

# Bower
bower_components

# Logs
log.txt
tmp/logs/*.log
npm-debug.log*
tmp/logs/nodejs/

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

build

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
*.iml

## Directory-based project format:
.idea/
.vscode/symbols.json

public/js
iisnode/
.env

# Elastic Beanstalk Files

.elasticbeanstalk/*

!.elasticbeanstalk/config.yml
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml

# Do not store autogenerated docs in repo
/docs

yarn-error.log
@@ -0,0 +1,30 @@
FROM node:alpine

RUN npm install yarn -g

# Import MongoDB public GPG key AND create a MongoDB list file
## RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
# RUN echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
## RUN apt-get update
# RUN apt-get install -y mongodb-org; exit 0
# RUN mkdir -p /data/db
# RUN mongod --logpath mongod.log --fork

# Make our app folder (empty for now)
RUN mkdir -p /usr/src/app

# Provides cached layer for node_modules and bower_components
ADD package.json /tmp/package.json
RUN cd /tmp/ && yarn install
RUN cp -a /tmp/node_modules /usr/src/app/
RUN cd /usr/src/app

WORKDIR /usr/src/app
# Bundle app source
ADD . /usr/src/app

RUN $(npm bin)/tsc

EXPOSE 5577

CMD [ "npm", "run", "prod" ]
@@ -0,0 +1,26 @@
version: '3.2'

services:
api:
build: ../..
container_name: ever-api-dev
ports:
- 5577:5577
environment:
- DB_URI=mongodb://mongodb/ever_development
links:
- mongodb
depends_on:
- mongodb

mongodb:
image: mongo
container_name: mongodb
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null # --quiet
@@ -0,0 +1,8 @@
version: "3.2"

services:
api:
build: ../..
container_name: ever-api
ports:
- 5577:5577
@@ -0,0 +1,35 @@
{

"README_schema" : "Specifies how to load the GraphQL schema that completion, error highlighting, and documentation is based on in the IDE",
"schema": {

"README_request" : "To request the schema from a url instead, remove the 'file' JSON property above (and optionally delete the default graphql.schema.json file).",
"request": {
"url" : "http://localhost:5555/graphql",
"method" : "POST",
"README_postIntrospectionQuery" : "Whether to POST an introspectionQuery to the url. If the url always returns the schema JSON, set to false and consider using GET",
"postIntrospectionQuery" : true,
"README_options" : "See the 'Options' section at https://github.com/then/then-request",
"options" : {
"headers": {
"user-agent" : "JS GraphQL"
}
}
}

},

"README_endpoints": "A list of GraphQL endpoints that can be queried from '.graphql' files in the IDE",
"endpoints" : [
{
"name": "Default (http://localhost:5555/graphql)",
"url": "http://localhost:5555/graphql",
"options" : {
"headers": {
"user-agent" : "JS GraphQL"
}
}
}
]

}
@@ -0,0 +1,25 @@
module.exports = {
"roots": [
"<rootDir>/src"
],
"testURL": "http://localhost",
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"moduleNameMapper": {
"^@pyro/db-server(.*)$": "<rootDir>/src/@pyro/db-server$1",
"^@pyro/db(.*)$": "<rootDir>/src/modules/server.common/@pyro/db$1",
"^@pyro/io(.*)$": "<rootDir>/src/@pyro/io$1",
"^@modules(.*)$": "<rootDir>/src/modules$1"
}
};
@@ -174,13 +174,15 @@
"nodemon": "^1.18.9",
"nyc": "^13.1.0",
"prettier": "^1.15.3",
"pretty-quick": "^1.8.0",
"prettier-tslint": "^0.4.2",
"pretty-quick": "^1.10.0",
"require-directory": "^2.1.1",
"supertest": "^3.3.0",
"ts-jest": "^23.10.5",
"ts-loader": "^5.3.3",
"ts-node": "^7.0.1",
"tslint": "^5.12.0",
"rxjs-tslint": "0.1.5",
"typedoc": "^0.14.0",
"typemoq": "^2.1.0",
"typescript": "~3.1.6",
Oops, something went wrong.

0 comments on commit e35aeca

Please sign in to comment.
You can’t perform that action at this time.