Skip to content
Permalink
Browse files

feat: bring more latest updates to Github repo

  • Loading branch information...
evereq committed Feb 13, 2019
1 parent 806e1b5 commit f9805d29a6459f337b76183126b9f6944a126876
Showing with 11,943 additions and 10,021 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 .travis.yml
  3. +56 −34 README.md
  4. +3 −2 admin/website-angular/package.json
  5. +2 −1 admin/website-angular/src/app/@shared/forms/google-map/google-map.component.ts
  6. +1 −0 admin/website-angular/src/app/@theme/styles/everdark.theme.scss
  7. +6 −0 admin/website-angular/src/app/@theme/styles/styles.scss
  8. +6 −5 admin/website-angular/src/app/@theme/styles/theme.everdark.ts
  9. +14 −0 admin/website-angular/src/app/pages/+carriers/+carrier/carrier-info.component.html
  10. +1 −18 admin/website-angular/src/app/pages/+carriers/+carrier/carrier-info.component.ts
  11. +42 −21 admin/website-angular/src/app/pages/+carriers/+carrier/carrier.component.html
  12. +9 −5 admin/website-angular/src/app/pages/+carriers/+carrier/carrier.component.scss
  13. +5 −1 admin/website-angular/src/app/pages/+carriers/+carrier/carrier.module.ts
  14. +40 −15 admin/website-angular/src/app/pages/+customers/+customer/customer.component.html
  15. +6 −0 admin/website-angular/src/app/pages/+customers/+customer/customer.component.scss
  16. +5 −1 admin/website-angular/src/app/pages/+customers/+customer/customer.module.ts
  17. +60 −16 ...ite-angular/src/app/pages/+dashboard/dashboard-select-store/dashboard-select-store.component.html
  18. +5 −0 ...ite-angular/src/app/pages/+dashboard/dashboard-select-store/dashboard-select-store.component.scss
  19. +9 −3 ...bsite-angular/src/app/pages/+dashboard/dashboard-select-store/dashboard-select-store.component.ts
  20. +27 −18 admin/website-angular/src/app/pages/+dashboard/dashboard.component.ts
  21. +5 −1 admin/website-angular/src/app/pages/+dashboard/dashboard.module.ts
  22. +94 −25 ...r/src/app/pages/+warehouses/+warehouse/warehouse-select-view/warehouse-select-view.component.html
  23. +6 −0 ...r/src/app/pages/+warehouses/+warehouse/warehouse-select-view/warehouse-select-view.component.scss
  24. +5 −1 ...ngular/src/app/pages/+warehouses/+warehouse/warehouse-select-view/warehouse-select-view.module.ts
  25. +13 −1 admin/website-angular/yarn.lock
  26. +50 −41 backend/api/package.json
  27. +1 −1 backend/api/src/@pyro/db-server/db-service.ts
  28. +1 −1 backend/api/src/graphql/carriers/carriers.types.graphql
  29. +27 −0 backend/api/src/graphql/geo-locations/geo-location.resolver.ts
  30. +6 −0 backend/api/src/graphql/geo-locations/geo-locations.graphql
  31. +5 −0 backend/api/src/graphql/users/user.resolver.ts
  32. +8 −0 backend/api/src/graphql/users/users.types.graphql
  33. +9 −1 backend/api/src/graphql/warehouses-orders/warehouses-orders.resolver.ts
  34. +6 −1 backend/api/src/graphql/warehouses-orders/warehouses-orders.types.graphql
  35. +17 −1 backend/api/src/graphql/warehouses-products/warehouse-products.resolver.ts
  36. +10 −0 backend/api/src/graphql/warehouses-products/warehouses-products.types.graphql
  37. +6 −1 backend/api/src/services/carriers/CarriersOrdersService.ts
  38. +1 −1 backend/api/src/services/devices/DevicesService.ts
  39. +42 −2 backend/api/src/services/geo-locations/GeoLocationsProductsService.ts
  40. +13 −8 backend/api/src/services/services.app.ts
  41. +49 −0 backend/api/src/services/users/UsersOrdersService.ts
  42. +20 −0 backend/api/src/services/warehouses/WarehousesOrdersService.ts
  43. +41 −1 backend/api/src/services/warehouses/WarehousesProductsService.ts
  44. +1,446 −2,305 backend/api/yarn.lock
  45. +38 −0 carrier/mobile-ionic/.gitignore
  46. +103 −0 carrier/mobile-ionic/config.xml
  47. +41 −0 carrier/mobile-ionic/config/webpack.config.js
  48. +17 −0 carrier/mobile-ionic/img/ever-background-gradient.svg
  49. +12 −0 carrier/mobile-ionic/img/ever-logo.svg
  50. BIN carrier/mobile-ionic/img/image_placeholder.png
  51. BIN carrier/mobile-ionic/img/login_back.png
  52. BIN carrier/mobile-ionic/img/logo.png
  53. +7 −0 carrier/mobile-ionic/ionic.config.json
  54. +103 −91 carrier/mobile-ionic/package.json
  55. +8 −0 carrier/mobile-ionic/resources/README.md
  56. BIN carrier/mobile-ionic/resources/android/icon/drawable-hdpi-icon.png
  57. BIN carrier/mobile-ionic/resources/android/icon/drawable-ldpi-icon.png
  58. BIN carrier/mobile-ionic/resources/android/icon/drawable-mdpi-icon.png
  59. BIN carrier/mobile-ionic/resources/android/icon/drawable-xhdpi-icon.png
  60. BIN carrier/mobile-ionic/resources/android/icon/drawable-xxhdpi-icon.png
  61. BIN carrier/mobile-ionic/resources/android/icon/drawable-xxxhdpi-icon.png
  62. BIN carrier/mobile-ionic/resources/android/splash/drawable-land-hdpi-screen.png
  63. BIN carrier/mobile-ionic/resources/android/splash/drawable-land-ldpi-screen.png
  64. BIN carrier/mobile-ionic/resources/android/splash/drawable-land-mdpi-screen.png
  65. BIN carrier/mobile-ionic/resources/android/splash/drawable-land-xhdpi-screen.png
  66. BIN carrier/mobile-ionic/resources/android/splash/drawable-land-xxhdpi-screen.png
  67. BIN carrier/mobile-ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png
  68. BIN carrier/mobile-ionic/resources/android/splash/drawable-port-hdpi-screen.png
  69. BIN carrier/mobile-ionic/resources/android/splash/drawable-port-ldpi-screen.png
  70. BIN carrier/mobile-ionic/resources/android/splash/drawable-port-mdpi-screen.png
  71. BIN carrier/mobile-ionic/resources/android/splash/drawable-port-xhdpi-screen.png
  72. BIN carrier/mobile-ionic/resources/android/splash/drawable-port-xxhdpi-screen.png
  73. BIN carrier/mobile-ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png
  74. BIN carrier/mobile-ionic/resources/icon.png
  75. +1 −0 carrier/mobile-ionic/resources/icon.png.md5
  76. BIN carrier/mobile-ionic/resources/ios/icon/icon-1024.png
  77. BIN carrier/mobile-ionic/resources/ios/icon/icon-40.png
  78. BIN carrier/mobile-ionic/resources/ios/icon/icon-40@2x.png
  79. BIN carrier/mobile-ionic/resources/ios/icon/icon-40@3x.png
  80. BIN carrier/mobile-ionic/resources/ios/icon/icon-50.png
  81. BIN carrier/mobile-ionic/resources/ios/icon/icon-50@2x.png
  82. BIN carrier/mobile-ionic/resources/ios/icon/icon-60.png
  83. BIN carrier/mobile-ionic/resources/ios/icon/icon-60@2x.png
  84. BIN carrier/mobile-ionic/resources/ios/icon/icon-60@3x.png
  85. BIN carrier/mobile-ionic/resources/ios/icon/icon-72.png
  86. BIN carrier/mobile-ionic/resources/ios/icon/icon-72@2x.png
  87. BIN carrier/mobile-ionic/resources/ios/icon/icon-76.png
  88. BIN carrier/mobile-ionic/resources/ios/icon/icon-76@2x.png
  89. BIN carrier/mobile-ionic/resources/ios/icon/icon-83.5@2x.png
  90. BIN carrier/mobile-ionic/resources/ios/icon/icon-small.png
  91. BIN carrier/mobile-ionic/resources/ios/icon/icon-small@2x.png
  92. BIN carrier/mobile-ionic/resources/ios/icon/icon-small@3x.png
  93. BIN carrier/mobile-ionic/resources/ios/icon/icon.png
  94. BIN carrier/mobile-ionic/resources/ios/icon/icon@2x.png
  95. BIN carrier/mobile-ionic/resources/ios/splash/Default-568h@2x~iphone.png
  96. BIN carrier/mobile-ionic/resources/ios/splash/Default-667h.png
  97. BIN carrier/mobile-ionic/resources/ios/splash/Default-736h.png
  98. BIN carrier/mobile-ionic/resources/ios/splash/Default-Landscape-736h.png
  99. BIN carrier/mobile-ionic/resources/ios/splash/Default-Landscape@2x~ipad.png
  100. BIN carrier/mobile-ionic/resources/ios/splash/Default-Landscape@~ipadpro.png
  101. BIN carrier/mobile-ionic/resources/ios/splash/Default-Landscape~ipad.png
  102. BIN carrier/mobile-ionic/resources/ios/splash/Default-Portrait@2x~ipad.png
  103. BIN carrier/mobile-ionic/resources/ios/splash/Default-Portrait@~ipadpro.png
  104. BIN carrier/mobile-ionic/resources/ios/splash/Default-Portrait~ipad.png
  105. BIN carrier/mobile-ionic/resources/ios/splash/Default@2x~iphone.png
  106. BIN carrier/mobile-ionic/resources/ios/splash/Default@2x~universal~anyany.png
  107. BIN carrier/mobile-ionic/resources/ios/splash/Default~iphone.png
  108. BIN carrier/mobile-ionic/resources/splash.png
  109. +1 −0 carrier/mobile-ionic/resources/splash.png.md5
  110. +41 −0 carrier/mobile-ionic/tsconfig.json
  111. +122 −0 carrier/mobile-ionic/tslint.json
  112. +1,965 −912 carrier/mobile-ionic/yarn.lock
  113. +6 −0 commitlint.config.js
  114. +1 −1 lerna.json
  115. +8 −0 merchant/tablet-ionic/.ebextensions/logging.config
  116. +6 −0 merchant/tablet-ionic/.ebextensions/nodecommand.config
  117. +4 −0 merchant/tablet-ionic/.ebignore
  118. +14 −0 merchant/tablet-ionic/.elasticbeanstalk/config.yml
  119. +7 −0 merchant/tablet-ionic/.env.template
  120. +36 −0 merchant/tablet-ionic/.gitignore
  121. +106 −0 merchant/tablet-ionic/config.xml
  122. +67 −0 merchant/tablet-ionic/config/webpack.config.js
  123. +30 −0 merchant/tablet-ionic/graphql.config.json
  124. +104 −80 merchant/tablet-ionic/package.json
  125. +36 −0 merchant/tablet-ionic/pm2bootstrap.js
  126. +1 −0 merchant/tablet-ionic/pm2bootstrap.js.map
  127. +51 −0 merchant/tablet-ionic/pm2bootstrap.ts
  128. +8 −0 merchant/tablet-ionic/resources/README.md
  129. BIN merchant/tablet-ionic/resources/android/icon/drawable-hdpi-icon.png
  130. BIN merchant/tablet-ionic/resources/android/icon/drawable-ldpi-icon.png
  131. BIN merchant/tablet-ionic/resources/android/icon/drawable-mdpi-icon.png
  132. BIN merchant/tablet-ionic/resources/android/icon/drawable-xhdpi-icon.png
  133. BIN merchant/tablet-ionic/resources/android/icon/drawable-xxhdpi-icon.png
  134. BIN merchant/tablet-ionic/resources/android/icon/drawable-xxxhdpi-icon.png
  135. BIN merchant/tablet-ionic/resources/android/splash/drawable-land-hdpi-screen.png
  136. BIN merchant/tablet-ionic/resources/android/splash/drawable-land-ldpi-screen.png
  137. BIN merchant/tablet-ionic/resources/android/splash/drawable-land-mdpi-screen.png
  138. BIN merchant/tablet-ionic/resources/android/splash/drawable-land-xhdpi-screen.png
  139. BIN merchant/tablet-ionic/resources/android/splash/drawable-land-xxhdpi-screen.png
  140. BIN merchant/tablet-ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png
  141. BIN merchant/tablet-ionic/resources/android/splash/drawable-port-hdpi-screen.png
  142. BIN merchant/tablet-ionic/resources/android/splash/drawable-port-ldpi-screen.png
  143. BIN merchant/tablet-ionic/resources/android/splash/drawable-port-mdpi-screen.png
  144. BIN merchant/tablet-ionic/resources/android/splash/drawable-port-xhdpi-screen.png
  145. BIN merchant/tablet-ionic/resources/android/splash/drawable-port-xxhdpi-screen.png
  146. BIN merchant/tablet-ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png
  147. BIN merchant/tablet-ionic/resources/icon.png
  148. +1 −0 merchant/tablet-ionic/resources/icon.png.md5
  149. BIN merchant/tablet-ionic/resources/ios/icon/icon-1024.png
  150. BIN merchant/tablet-ionic/resources/ios/icon/icon-40.png
  151. BIN merchant/tablet-ionic/resources/ios/icon/icon-40@2x.png
  152. BIN merchant/tablet-ionic/resources/ios/icon/icon-40@3x.png
  153. BIN merchant/tablet-ionic/resources/ios/icon/icon-50.png
  154. BIN merchant/tablet-ionic/resources/ios/icon/icon-50@2x.png
  155. BIN merchant/tablet-ionic/resources/ios/icon/icon-60.png
  156. BIN merchant/tablet-ionic/resources/ios/icon/icon-60@2x.png
  157. BIN merchant/tablet-ionic/resources/ios/icon/icon-60@3x.png
  158. BIN merchant/tablet-ionic/resources/ios/icon/icon-72.png
  159. BIN merchant/tablet-ionic/resources/ios/icon/icon-72@2x.png
  160. BIN merchant/tablet-ionic/resources/ios/icon/icon-76.png
  161. BIN merchant/tablet-ionic/resources/ios/icon/icon-76@2x.png
  162. BIN merchant/tablet-ionic/resources/ios/icon/icon-83.5@2x.png
  163. BIN merchant/tablet-ionic/resources/ios/icon/icon-small.png
  164. BIN merchant/tablet-ionic/resources/ios/icon/icon-small@2x.png
  165. BIN merchant/tablet-ionic/resources/ios/icon/icon-small@3x.png
  166. BIN merchant/tablet-ionic/resources/ios/icon/icon.png
  167. BIN merchant/tablet-ionic/resources/ios/icon/icon@2x.png
  168. BIN merchant/tablet-ionic/resources/ios/splash/Default-568h@2x~iphone.png
  169. BIN merchant/tablet-ionic/resources/ios/splash/Default-667h.png
  170. BIN merchant/tablet-ionic/resources/ios/splash/Default-736h.png
  171. BIN merchant/tablet-ionic/resources/ios/splash/Default-Landscape-736h.png
  172. BIN merchant/tablet-ionic/resources/ios/splash/Default-Landscape@2x~ipad.png
  173. BIN merchant/tablet-ionic/resources/ios/splash/Default-Landscape@~ipadpro.png
  174. BIN merchant/tablet-ionic/resources/ios/splash/Default-Landscape~ipad.png
  175. BIN merchant/tablet-ionic/resources/ios/splash/Default-Portrait@2x~ipad.png
  176. BIN merchant/tablet-ionic/resources/ios/splash/Default-Portrait@~ipadpro.png
  177. BIN merchant/tablet-ionic/resources/ios/splash/Default-Portrait~ipad.png
  178. BIN merchant/tablet-ionic/resources/ios/splash/Default@2x~iphone.png
  179. BIN merchant/tablet-ionic/resources/ios/splash/Default@2x~universal~anyany.png
  180. BIN merchant/tablet-ionic/resources/ios/splash/Default~iphone.png
  181. BIN merchant/tablet-ionic/resources/splash.png
  182. +1 −0 merchant/tablet-ionic/resources/splash.png.md5
  183. +39 −0 merchant/tablet-ionic/tsconfig.json
  184. +135 −0 merchant/tablet-ionic/tslint.json
  185. +2,609 −4,171 merchant/tablet-ionic/yarn.lock
  186. +28 −13 package.json
  187. +8 −6 shared/core-angular/locale/product-locales.service.ts
  188. +14 −0 shared/core/entities/Warehouse.ts
  189. +2 −0 shared/core/interfaces/IWarehouse.ts
  190. +6 −1 shared/core/utils.ts
  191. +7 −3 shop/mobile-ionic/package.json
  192. +4 −4 shop/mobile-ionic/yarn.lock
  193. +106 −89 shop/website-angular/package.json
  194. +3,341 −2,000 shop/website-angular/yarn.lock
  195. +517 −116 yarn.lock
@@ -43,3 +43,4 @@ Thumbs.db

yarn.lock
/yarn-error.log
*.lerna_backup
@@ -32,15 +32,15 @@ before_install:
- npm i -g lerna@latest

install:
- git clone -c core.symlinks=true --recursive --depth=3 --branch=$TRAVIS_BRANCH https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
- git clone -c core.symlinks=true --recursive --depth=3 --branch=$TRAVIS_BRANCH https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG
- cd $TRAVIS_REPO_SLUG
- git checkout -qf $TRAVIS_COMMIT
- yarn install
- yarn bootstrap

matrix:
include:
- env: PROJECT=backend/api
# - env: PROJECT=backend/api
# - env: PROJECT=admin/website-angular
# - env: PROJECT=carrier/mobile-ionic
# - env: PROJECT=shop/mobile-ionic
@@ -19,31 +19,38 @@ Expect _lots_ of changes and some :bug: and please be nice! :stuck_out_tongue_wi

- Open Platform (every part is Open-Source)
- Everything Reactive, Real-Time and Blazing Fast!
- Headless Commerce framework, which allows different implementations of store-fronts, Admin UIs and client apps. Exposes rich GraphQL, REST and WS APIs.
- Shopping Mobile App for customers to make On-Demand orders (iOS and Android using Ionic / Ionic Native)
- Carrier Mobile App for carriers, drivers or delivery service providers (iOS and Android using Ionic / Ionic Native)
- Shopping e-commerce Website for customers to make in-browser On-Demand purchases of food, goods or services
- Merchant Tablet App used by Stores/Merchants/Warehouses to manage & track orders, organize deliveries, etc.
- Admin Website used to manage all platform features and settings in the single Web-based interface
- Multi-language and culture settings accross Platform (i18N)
- Products Catalogs (global and per Merchant) with Multiple Product Images
- Inventory Management and Real-time Order Management/Processing accross the Platform
- Deliveries/Shipping management and processing accross Platform (shipping with real-time location tracking)
- Inventory/Stock Management and Real-time Order Management/Processing accross the Platform
- Deliveries/Shipping management and processing accross Platform (shipping with real-time location tracking for On-Demand orders)
- Real-Time discounts, promotions and products/services availability updates
- Customers registration, Guest Checkouts, Invitations (optional)
- Gateway and Payment Processing (currently supported Payments Gateway - [Stripe](https://stripe.com))
- Rich GraphQL, REST and WS APIs
- Plugins / Extensions / Custom Fields (WIP)

## Planned Features

- Tax Calculations
- Third-party Shipping providers integrations
- Users Roles / Permissions accross Platform
- Large products catalogs with products variants, facets and full-text search

You can also track feature requests from the community in the [separate repo](https://github.com/ever-co/feature-requests/issues).

## Technology Stack and Requirements

- Almost every part of the Platform build using [TypeScript](https://www.typescriptlang.org) language (version >=2.9)
- Most of projects require [Node.js](https://nodejs.org) (version >=10)
- Shopping Mobile App developed using [Ionic](https://ionicframework.com) version 4
- Carrier Mobile App developed using [Ionic](https://ionicframework.com) version 3
- [TypeScript](https://www.typescriptlang.org) language (version >=2.9)
- [Node.js](https://nodejs.org) (version >=10)
- [Ionic](https://ionicframework.com) (version 4) for Shopping Mobile App, Carrier Mobile App and Merchant Tablet App
- Shopping Website developed with [Angular](https://angular.io) 7 using [Angular Starter](https://github.com/gdi2290/angular-starter)
- Merchant Tablet App developed using [Ionic](https://ionicframework.com) version 3
- Admin Website developed with [Angular](https://angular.io) version 7 using [ngx-admin](https://github.com/akveo/ngx-admin)
- Backend Api (Server) developed using [Nest](https://github.com/nestjs/nest) with heavy use of our own Pyro module. Supports GraphQL, REST and WS Real-Time APIs (WebSockets using [Socket.io](https://socket.io) library)
- Headless Commerce framework (Backend APIs/Server) developed using [Nest](https://github.com/nestjs/nest) with heavy use of our own Pyro module. Supports GraphQL, REST and WS Real-Time APIs (WebSockets using [Socket.io](https://socket.io) library)
- [RxJS](http://reactivex.io/rxjs) library used heavy in every part of the Platform
- [InversifyJS](http://inversify.io) used for Inversion Control / Dependency Injection in most parts of the Platform. On the Backend/API we also use DI provided by [Nest](https://github.com/nestjs/nest)
- [MongoDB](https://www.mongodb.com) Database used with [Mongoose](https://mongoosejs.com) ORM (supported MongoDB version >= 3.2; we recommend version >=4)
@@ -60,17 +67,6 @@ For quick overview of each project in the Platform (Server, Admin, Shops, etc),

## Getting Started

### MongoDB

You can download and install free Community version of MongoDB from the [official MongoDB download center](https://www.mongodb.com/download-center/v2/community).

After installation, make sure MongoDB service is running and accepting connections on default `localhost:27017` (change connection parameters in the ./backend/api/.env file if you run on different location/port)

To manage database, you can use free [MongoDB Compass Community Edition available](https://www.mongodb.com/download-center/v2/compass) or some other GUI for MongoDB, e.g. Studio 3T (https://studio3t.com)

For production, we recommend [MongoDB Atlas](https://www.mongodb.com/cloud/atlas).
It is also possible to use [AWS DocumentDB](https://aws.amazon.com/documentdb) or [Azure Cosmos DB](https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-introduction)

### Clone Repo

Clone the Ever Platform Git repo:
@@ -96,43 +92,69 @@ Notes:

### Yarn

Currently we are using Yarn (instead of npm), so make sure you have latest Yarn version installed before running Ever Platform:
Currently we are using `Yarn` (instead of `npm`), so make sure you have latest Yarn version installed before running Ever Platform:

```
npm install -g yarn@latest
```

### Lerna
### Quick installation

We are using [Lerna](https://github.com/lerna/lerna), so you need to run the following command from working folder where you cloned Ever git repo (this will install Lerna and other packages):
After git repo is cloned, just run following command to install/bootstrap all dependencies:

```
yarn bootstrap
```

This will install required packages in all Platform projects using Lerna

### Lerna (manual installation)

We are using [Lerna](https://github.com/lerna/lerna) for mono-repo management.
You need to run the following command from working folder where you cloned Ever git repo, which will install Lerna together with other packages:

```
yarn install
```

You may instead install Lerna globally (recommended) and let Lerna install everything for you:
You may instead install Lerna globally:

```
npm install lerna@latest -g
```

Now, after Lerna installed (locally or globally), you need to Bootstrap all dependencies:
Now, after Lerna installed (locally or globally), you need to Bootstrap all dependencies manually:

```
yarn bootstrap
yarn lerna bootstrap
```

The command above will install all required packages for every sub-project of the Ever Platform.

### Platform Configuration
### MongoDB

We created template & initial configuration files (with reasonable defaults) for each project in the Platform, to save your time and keep things simple:
You can download and install free Community version of MongoDB from the [official MongoDB download center](https://www.mongodb.com/download-center/v2/community).

After installation, make sure MongoDB service is running and accepting connections on default `localhost:27017` (change connection parameters in the ./backend/api/.env file if you run on different location/port)

To manage database, you can use free [MongoDB Compass Community Edition available](https://www.mongodb.com/download-center/v2/compass) or some other GUI for MongoDB, e.g. Studio 3T (https://studio3t.com)

For production, we recommend [MongoDB Atlas](https://www.mongodb.com/cloud/atlas).
It is also possible to use [AWS DocumentDB](https://aws.amazon.com/documentdb) or [Azure Cosmos DB](https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-introduction)

_Note: we currently integrating [Mongo Memory Server](https://github.com/nodkz/mongodb-memory-server) which will allow to test Platform without need to install MongoDB locally._

### Platform Configuration (optional)

We created templates & initial configuration files (with reasonable defaults) for each project in the Platform, to save your time and keep things simple:

- For _Backend (API)_ configuration, the `./backend/api/.env.template` file should be copied into `./backend/api/.env` and relevant changes should (optionally) be done.

**IMPORTANT**: you should have `./backend/api/.env` file in place to be able to run the Platform on developer machine
**IMPORTANT**: you should have `./backend/api/.env` file in place to be able to run the Platform on developer machine if you want to use different settings to our defaults.

- For _Admin_ Angular App configuration, the `./admin/website-angular/.env.template` file should be copied into `./admin/website-angular/.env` and relevant changes should (optionally) be done.

- For _Admin_ Angular App configuration, see `./admin/website-angular/src/environments/environment.ts` and `./admin/website-angular/src/environments/environment.prod.ts` files
Note: the "Standard" Angular environment configuration files `./admin/website-angular/src/environments/environment.ts` and `./admin/website-angular/src/environments/environment.prod.ts` will be auto-generated from .env file (if it's exists) or from default settings on the first app run

- For _Merchant_ Ionic App configuration, see `./merchant/tablet-ionic/src/environments/environment.ts` and `./merchant/tablet-ionic/src/environments/environment.prod.ts` files. If you need to run Merchant App using PM2 (as Web app, not Tablet App), needs copy `./merchant/tablet-ionic/.env.template` to `./merchant/tablet-ionic/.env` and make relevant changes (if required)

@@ -144,9 +166,9 @@ We created template & initial configuration files (with reasonable defaults) for

Notes:

- for initial development run no changes required in the `environment.ts` files, unless changes were done to the Backend (API) configuration. However, to enable some of the Platform features, you may need to change relevant configurations at corresponding files.
- for initial development run no changes required in the `.env` or `environment.ts` files in the projects, unless some manual changes were done to the Backend (API) configuration. However, to enable some of the Platform features, you may need to change relevant configurations at corresponding files.

- files environment.prod.ts are configurations for production environments/builds only (you should probably not publish them, unless you removed all private/secure parameters).
- files `.env`, `environment.ts`, `environment.prod.ts` are configurations you should never make public, unless you removed all private/secure parameters from them.

### Run Platform Projects

@@ -171,7 +193,7 @@ You can use credentials above to login into Platform Admin App, which available
## Contribute

- Please give us :star: on Github, it **really** helps!
- You are more than welcome to submit feature requests in the separate repo: [https://github.com/ever-co/feature-requests/issues](https://github.com/ever-co/feature-requests/issues)
- You are more than welcome to submit feature requests in the [separate repo](https://github.com/ever-co/feature-requests/issues)
- Pull requests are always welcome! Please base pull requests against the _develop_ branch and follow the [contributing guide](.github/CONTRIBUTING.md).

## Collaborators and Contributors
@@ -191,7 +213,7 @@ You can use credentials above to login into Platform Admin App, which available
- Elvis Arabadjiyski ([Dreemsuncho](https://github.com/Dreemsuncho))
- Emil Momchilov ([jew-er](https://github.com/jew-er))

#### QA
#### Graphic Designer & QA

- Julia Konviser

@@ -75,6 +75,7 @@
"@nebular/security": "^3.1.0",
"@nebular/theme": "^3.1.0",
"@ng-bootstrap/ng-bootstrap": "^4.0.1",
"@ng-select/ng-select": "^2.15.3",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"@swimlane/ngx-charts": "^10.0.0",
@@ -164,14 +165,15 @@
"@types/leaflet": "^1.2.14",
"@types/mongodb": "^3.1.18",
"@types/mongoose": "^5.3.7",
"@types/node": "^10.12.18",
"@types/node": "^11.9.3",
"@types/socket.io-client": "^1.4.32",
"@types/stripe": "^6.19.1",
"@types/uuid": "^3.4.4",
"@types/yargs": "^12.0.8",
"babel-loader": "^8.0.5",
"codelyzer": "^4.5.0",
"conventional-changelog-cli": "^2.0.11",
"cross-env": "^5.2.0",
"dotenv": "^6.2.0",
"envalid": "^4.2.1",
"husky": "^1.3.1",
@@ -192,7 +194,6 @@
"tslint": "^5.12.1",
"tslint-language-service": "^0.9.9",
"typescript": "~3.1.6",
"cross-env": "^5.2.0",
"yargs": "^12.0.5"
},
"engines": {
@@ -10,14 +10,15 @@ import { takeUntil } from 'rxjs/operators';
`
})
export class GoogleMapComponent implements OnInit, OnDestroy {
//
@ViewChild('gmap')
mapElement: any;

@Input()
mapTypeEvent: Observable<string>;

@Input()
mapCoordEvent: Observable<google.maps.LatLng | google.maps.LatLngLiteral>;

@Input()
mapGeometryEvent: Observable<
google.maps.places.PlaceGeometry | google.maps.GeocoderGeometry
@@ -17,6 +17,7 @@ $nb-themes: nb-register-theme(
alert-bg: #1f212a,
select-bg: #1f212a,
color-bg: #1f212a,
color-info: #888,
drops-icon-line-gadient: -webkit-linear-gradient(gray, black),
// cards
card-border-color: rgba(0, 0, 0, 0.125),
@@ -22,6 +22,8 @@
@import './angular2-wizard';
@import './google-map';

@import '~@ng-select/ng-select/themes/default.theme.css';

// In the future versions of ngx-highlight we need to import theme globally
// @import 'node_modules/highlight.js/styles/github';
// install the framework and custom global styles
@@ -177,3 +179,7 @@ ea-product-create .card-footer {
border: 2px solid white;
}
}

.ng-select .ng-select-container .ng-value-container .ng-input > input {
height: auto !important;
}
@@ -166,8 +166,8 @@ export const EVERDARK_THEME = {
secondLineGradFrom: 'orange',
secondLineGradTo: 'red',

secondAreaGradFrom: 'orange',
secondAreaGradTo: 'red',
secondAreaGradFrom: '#ce4843',
secondAreaGradTo: 'orange',
secondShadowLineDarkBg: '#2c5a85',

// third line
@@ -206,9 +206,10 @@ export const EVERDARK_THEME = {
},

orderProfitLegend: {
firstItem: 'linear-gradient(90deg, #00c7c7 0%, #00d977 100%)',
secondItem: 'linear-gradient(90deg, #a454ff 0%, #7659ff 100%)',
thirdItem: '#4e40a4'
firstItem:
'linear-gradient(90deg, #47d26f 0%, mediumspringgreen 100%)',
secondItem: 'linear-gradient(90deg, #ce4843 0%, orange 100%)',
thirdItem: 'linear-gradient(90deg, gray 0%, lightgray 100%)'
},

visitors: {
@@ -0,0 +1,14 @@
<div class="modal-header">
<h3>{{ 'CARRIERS_VIEW.CARRIER_PAGE.CARRIER_INFO' | translate }}</h3>
<button class="close" aria-label="Close" (click)="cancel()">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<h6>
<strong
>{{ 'CARRIERS_VIEW.CARRIER_PAGE.CARRIER_ID' | translate }}:</strong
>
{{ carrierId }}
</h6>
</div>
@@ -2,24 +2,7 @@ import { Component, OnInit } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';

@Component({
template: `
<div class="modal-header">
<h3>{{ 'CARRIERS_VIEW.CARRIER_PAGE.CARRIER_INFO' | translate }}</h3>
<button class="close" aria-label="Close" (click)="cancel()">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<h6>
<strong
>{{
'CARRIERS_VIEW.CARRIER_PAGE.CARRIER_ID' | translate
}}:</strong
>
{{ carrierId }}
</h6>
</div>
`
templateUrl: './carrier-info.component.html'
})
export class CarrierTableInfoComponent implements OnInit {
public carrierId: string;
Oops, something went wrong.

0 comments on commit f9805d2

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