Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Nuxt.js project both with or without electron

I would like to configure a Nuxt.js project to be able to eitheir run it using nuxt start or using electron. The goal is to have the same code for a web app and an electron app.

Is it possible to combine both fontionnalities in the same project?

like image 580
ABotella Avatar asked Oct 25 '25 17:10

ABotella


2 Answers

Nuxt Community already have an electron-template for make it happen. You can take a look at main.js file to see the configuration or just init a project using:

vue init nuxt-community/electron-template my-project

Link: https://github.com/nuxt-community/electron-template

like image 119
Marcelo Formentão Avatar answered Oct 29 '25 07:10

Marcelo Formentão


Nuxt Community template is out of updates.use the following boilerplate for nuxt+electron

# Install vue-cli and scaffold boilerplate
npm install -g vue-cli
vue init michalzaq12/electron-nuxt <project-name>

Link: https://github.com/michalzaq12/electron-nuxt

like image 45
namila007 Avatar answered Oct 29 '25 07:10

namila007



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!