An open API service indexing awesome lists of open source software.

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.

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)

---


demo

---


Stars
Forks


License
Version
Contributors
Last Commit
Issues
Pull Requests
Build Status

---


static badge from nodejs
static badge from electronjs
static badge from electron builder
static badge from typescript
static badge from nextjs
static badge from reactjs
static badge from sequelize

---

## 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
```