Comments (5)
Hi, it's not possible.
MongoDB also starts very fast, I don't think it'd be too relevant. Unless you have some benchmark through different machines that shows otherwise.
Anyway, there's another point that is the size of the final app. If we remove the mongo
and mongod
binaries, the final app size will likely drop by 50mb.
The two plugins you find inside the lib/plugins
folder are my first basic draft for a plugin API, so there's not much functionality yet. However I haven't thought about removing MongoDB.
Are you deploying your app already without MongoDB? Meteor doesn't complain about it? You use a null
MONGO_URL or something? I've never did it before.
from electrify.
Thanks for the feedback. I will try to build some deployed versions that remove Mongo and see what I can get up and running. My problem is that these electrified apps seem to take quite a long time to start up. For instance, I have an i7 machine w/ 32GB of RAM -- and it takes 10-15 seconds for a simple leaderboard app to start, during which time Electron just has a blank white page.
from electrify.
Wow @msolters, 10-15 seconds seems a lot. Mine takes 1 or 2 seconds max with 2.5 GHz Intel Core i7
and 16 GB 1600 MHz DDR3
. I need to check this.
About the white page that is rendered right away before everything is up and running, it's possible for you to configure a splash screen.
I haven't tested it but it'll look similar to this:
// .electrify/splash.html
var app = require('app');
var browser = require('browser-window');
var electrify = require('electrify')(__dirname, {});
var splash = null;
var window = null;
app.on('ready', function() {
splash = new browser({
// >>> your configs here
});
splash.loadUrl('./splash.html'); // >>> create the ".electrify/splash.html" file
electrify.start(function(meteor_root_url) {
splash.close(); // >>> or .destroy(), check what works for you
window = new browser({
width: 1200, height: 900,
'node-integration': false
});
window.loadUrl(meteor_root_url);
});
});
app.on('window-all-closed', function() {
app.quit();
});
app.on('will-quit', function() {
electrify.stop();
});
from electrify.
@msolters Have you seen any speed improvement during the startup of your app?
I've just released a new version some minutes ago, please update and check if got better for you.
As for the option to completely strip mongo away, I think it's not crucial at this time, nor it is something straightforward / documented.
I've found something here, but seems a little tricky:
http://stackoverflow.com/questions/18545905/meteor-without-mongo
So I'm closing this for now, hope your build is starting faster than last time your posted.
from electrify.
I haven't had much time to focus on this. I'll let you know if there is a marked improvement next time I get to implementing it.
from electrify.
Related Issues (20)
- Using --icon when packaging HOT 2
- Method was not defined HOT 1
- Dependencies path length too long in Windows HOT 2
- Issue starting mongod - default storage engine not available HOT 18
- convert from webapp to desktop HOT 3
- Defining methods causes the app to crash HOT 1
- Setting system environment variables before meteor app is started. HOT 2
- Try to package starting example of meteor HOT 4
- How do I build debian package from generated app?
- App size grows with every run of electrify by about 400 MB (MacOS) HOT 1
- my-electrified-app.exe can not start
- No way to pass in --server option? HOT 1
- alternative solution -> meteor-desktop HOT 1
- How-to allow localhost:3000 in package ? HOT 1
- App does not render when packaged - Windows 10 x64 - WinXP x32 HOT 2
- electrify:meteor:index@client: cannot initialize connection. Did you `npm install -g electrify`?
- Error: EPERM: operation not permitted, rename 'C:\Users\username\AppData\Local\Temp\electrify\package' -> 'C:\appname\.electrify\.dist' HOT 1
- show error : core.require HOT 1
- Don't let this die... HOT 2
- Issue starting mongod HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electrify.