darkguy10 / nextjs-electron-boilerplate Goto Github PK
View Code? Open in Web Editor NEWA boilerplate for building desktop apps with Electron and NextJS.
License: MIT License
A boilerplate for building desktop apps with Electron and NextJS.
License: MIT License
Hi there! ๐
Firstly, I just want to say, what you've managed to achieve by combining Electron and Next.js into a single project is absolutely fantastic! As someone who is relatively new to the frontend world, your project is both inspiring and a bit magical to me.
I'm a student working on a small project for school, and I've been dabbling a bit in React. The goal of my project is to create an application that can be packaged as a binary for desktop usage ๐ฆ, but also, ideally, be capable of being deployed as a web server to serve web pages.
Your project seems like it could be the perfect starting point for what I'm trying to accomplish. However, I'm a bit puzzled about one thing and was hoping you could help clarify. I'm interested in leveraging Next.js's server-side rendering capabilities within the Electron framework. Since you've brilliantly utilized Electron primarily for backend tasks, I'm curious:
I understand this might be a bit of an unusual request, but your expertise and innovative approach to combining these technologies have really caught my eye, and I'm eager to learn more from your work.
Thank you so much for your time and for sharing your amazing project with the community. Looking forward to any advice you can provide!
NextJS-Electron-Boilerplate is really a nice template for start. however, I notice a error when use yarn build
, style sheet and image file seems not loaded correctly. But it load correctly when debug using yarn start
.
And it occured in yarn frontend:build
, and it seems is caused by browser's CORS, the reference link of css and image is started with file//
which is not allowd with CORS.
some mention add webSecurity: false,
in BrowserWindow webPreferences would address this problem, but it don't works for me.
macOS x86
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.