Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crapthings/meteor-switch-root-url
switch between meteor apps on cordova
https://github.com/crapthings/meteor-switch-root-url
cordova ddp meteor
Last synced: 3 days ago
JSON representation
switch between meteor apps on cordova
- Host: GitHub
- URL: https://github.com/crapthings/meteor-switch-root-url
- Owner: crapthings
- Created: 2017-12-20T05:44:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-20T05:45:02.000Z (about 7 years ago)
- Last Synced: 2024-11-24T01:11:38.436Z (2 months ago)
- Topics: cordova, ddp, meteor
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### WHY
> when you want to switch between multiple meteor app on cordova and keep last root url while reopen your app, this is the answer
> its okay to redirect to another domain by using window.location.href or replace on desktop browser, but when work with cordova, u should replace all DDP connection and window.location.reload()
### INSTALL
> add package then edit .meteor/packages, move crapthings:switch-root-url to on top of any other packages like below
```bash
meteor add crapthings:switch-root-url
``````
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.crapthings:switch-root-url
[email protected] # Packages every Meteor app needs to have
[email protected] # Packages for a great mobile UX
[email protected] # The database Meteor supports right now
[email protected] # Compile .html files into Meteor Blaze views
[email protected] # Reactive variable for tracker
[email protected] # Meteor's client-side reactive programming library[email protected] # CSS minifier run for production mode
[email protected] # JS minifier run for production mode
[email protected] # ECMAScript 5 compatibility for older browsers
[email protected] # Enable ECMAScript2015+ syntax in app code
[email protected] # Server-side component of the `meteor shell` command[email protected] # Publish all data to the clients (for prototyping)
[email protected] # Allow all DB writes from clients (for prototyping)
```### API
> examples
```javascript
Meteor.switchRootUrl('https://another.meteorapp.com')
``````javascript
Meteor.switchRootUrl('http://localhost:4000')
```### INSPIRATION
* https://github.com/partus/meteor-server-picker