All Projects → roblouie → Ionic2 Environment Variables

roblouie / Ionic2 Environment Variables

Demonstration on how to easily setup environment variables in Ionic 2

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ionic2 Environment Variables

ionic-workflow-guide
Create a full and powerful worflow with Ionic (Unit Testing, Environment variables, Automatic documentation, Production App Server, Automatic deployment)
Stars: ✭ 46 (+130%)
Mutual labels:  angular2, environment-variables, ionic2
ionic-video-chat-support
Ionic 3 Video and Group Text Chat
Stars: ✭ 19 (-5%)
Mutual labels:  angular2, ionic2
tech1-temple-javascript
JavaScript Proofs of Concepts repository. No Longer Supported
Stars: ✭ 61 (+205%)
Mutual labels:  angular2, webpack2
ionic-uuchat
基于ionic3,angular4的实时聊天app,兼容web端。该项目只是前端部分,所有数据需要请求后端服务器,需要配套express-uuchat-api使用。
Stars: ✭ 14 (-30%)
Mutual labels:  angular2, ionic2
Bartonic
Quick Bart Schedule, Favorite Routes, Bart Map Ionic App
Stars: ✭ 8 (-60%)
Mutual labels:  ionic2, angular2
ionic2 firebase shopping cart
Shopping cart built using Ionic2 and Firebase
Stars: ✭ 21 (+5%)
Mutual labels:  angular2, ionic2
ionic2-geofence
Ionic2 Geofencing Sample Project
Stars: ✭ 96 (+380%)
Mutual labels:  angular2, ionic2
Awesome Ionic2 Components
Should help you to get awesome components and plugins for Ionic2
Stars: ✭ 209 (+945%)
Mutual labels:  ionic2, angular2
Ionic3-FullscreenContent
Ionic 3 demo of how to hide the header when scrolling down and show it again when scrolling up.
Stars: ✭ 24 (+20%)
Mutual labels:  angular2, ionic2
angular-progress-bar
This component allow you to easy incorporate progress-bar to angular/ionic project, providing binding and color options
Stars: ✭ 26 (+30%)
Mutual labels:  angular2, ionic2
Angular2 Starter Webpack
Angular 2 starter kit with Webpack 2, Karma, Sass, Protractor, Istabul and Tslint
Stars: ✭ 13 (-35%)
Mutual labels:  webpack2, angular2
Dejajs Components
Angular components
Stars: ✭ 37 (+85%)
Mutual labels:  webpack2, angular2
Generator Fountain Webapp
Yeoman 'fountain' generator to start a webapp
Stars: ✭ 985 (+4825%)
Mutual labels:  webpack2, angular2
Dianoia-app
Mobile (Ionic 3 - Angular 4) app about non-pharmaceutical activities and information for people with dementia.
Stars: ✭ 13 (-35%)
Mutual labels:  angular2, ionic2
Ngx Facebook
Angular TypeScript Wrapper for Facebook SDK
Stars: ✭ 214 (+970%)
Mutual labels:  ionic2, angular2
Ionic Audio
An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
Stars: ✭ 332 (+1560%)
Mutual labels:  ionic2, angular2
Ionic2 Rating
⭐️ Angular star rating bar. Built for Ionic 2+.
Stars: ✭ 177 (+785%)
Mutual labels:  ionic2, angular2
Growth Ionic
[v2.0 DEPRECATED, please update to Growth 3.0] Growth - App to help you Be Awesome Developer & Awesome Hacker
Stars: ✭ 2,200 (+10900%)
Mutual labels:  ionic2, angular2
angular2-instagram
🔥Instagram like photo filter playground built with Angular2 (Web | Desktop)
Stars: ✭ 91 (+355%)
Mutual labels:  angular2, webpack2
ionic-modal-custom-transitions
Add Custom Transitions to Ionic Modals.
Stars: ✭ 22 (+10%)
Mutual labels:  angular2, ionic2

ionic2-environment-variables

Demonstration on how to easily setup environment variables in Ionic 2

Sets environment variables based on if Ionic 2 is running with the --prod flag. Adds just a single line to Ionic's default Webpack configuration.

If you need more than dev and prod (all that Ionic supports), you can use your Node environment (NODE_ENV) instead. For this demo both are used, but in a real app choose one, using both isn't intuitive.

After changing the Webpack config, all the logic is encapsulated in the environment-variables module, so it's easy to copy and paste this solution into any Webpack configured Angular 2 app.

Use 'dev' environment variables

ionic serve

Use 'prod' environment variables

ionic serve --prod

Use 'qa' environment variables

npm run ionic:serve:qa Or simply set NODE_ENV to 'qa' before running serve, which is what that npm script does.

Companion to my tutorial here: http://www.roblouie.com/article/296/ionic-2-environment-variables-the-best-way/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].