https://github.com/saulotarsobc/electronjs-with-nextjs
ElectronJS application with NextJS and TypeScript.
https://github.com/saulotarsobc/electronjs-with-nextjs
app electron electron-app electronjs linux mac multiplataform next nextjs sequelize sqlite sqlite3 tailwindcss typescript windows
Last synced: about 1 month ago
JSON representation
ElectronJS application with NextJS and TypeScript.
- Host: GitHub
- URL: https://github.com/saulotarsobc/electronjs-with-nextjs
- Owner: saulotarsobc
- License: mit
- Created: 2023-08-26T13:59:14.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-19T19:55:03.000Z (3 months ago)
- Last Synced: 2025-07-19T22:35:00.375Z (3 months ago)
- Topics: app, electron, electron-app, electronjs, linux, mac, multiplataform, next, nextjs, sequelize, sqlite, sqlite3, tailwindcss, typescript, windows
- Language: TypeScript
- Homepage:
- Size: 8.29 MB
- Stars: 41
- Watchers: 2
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# SC - Electron and Next
> A template to build an ElectronJS app with NextJS
⚠️ See also [electron-with-vite](https://github.com/saulotarsobc/electron-with-vite)
---
![]()
---
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
---
![]()
![]()
![]()
![]()
![]()
![]()
![]()
---
## Use
```sh
git clone https://github.com/saulotarsobc/electron-next-ts.git;
cd electron-next-ts;
npm install;
npm run dev;
```## Help
- [Electronjs - documentation](https://www.electronjs.org/pt/docs/latest/)
- [Any Linux Target](https://www.electron.build/linux)## Scripts
- `dev`: Run Electron with development build.
- `build:backend`: Build backend with TypeScript.
- `prebuild`: Remove build and dist directories.
- `build`: Build frontend and backend.
- `build:frontend`: Build frontend with Next.js.
- `build:backend`: Build backend with TypeScript.
- `postinstall`: Install dependencies for Electron.
- `dist`: Build and make a distribution package with Electron Builder.## electron-builder Configutarion to this project
```json
...
"build": {
"appId": "br.com.electron.next",
"productName": "SC - Electron and Next",
"files": [
"dist"
],
"directories": {
"output": "out"
},
"win": {
"target": [
"nsis"
],
"artifactName": "${name}-${version}-windows-${arch}.${ext}"
},
"mac": {
"target": "dmg",
"signIgnore": null,
"artifactName": "${productName}-Setup-${version}.${ext}"
},
"linux": {
"target": [
"AppImage",
"deb"
],
"artifactName": "${name}-${version}-linux-${arch}.${ext}"
}
}
...
```## Git Commands
### Release
```bash
#! bash
git tag "v$1"
git push origin --tags
```