Skip to content

We are designing a Puter desktop application πŸŒπŸš€

License

Notifications You must be signed in to change notification settings

DarkCodeStudios/Puter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Puter desktop app

We are designing a Puter desktop application πŸŒπŸš€

App created by https://github.com/electron/electron-quick-start.git

Features

1)Desktop app

2)Self-Host

3)Linux/Windows/macOS

Explaining the functions

Create window (800 x 800)

function createWindow () {
  // Crea la finestra del browser
  const win = new BrowserWindow({
    width: 800,
    height: 800,
    webPreferences: {
      nodeIntegration: false // Disabilita l'integrazione di Node.js nella pagina web
    }
  });

Open http://puter.localhost:4100/

You can also change the domain to https://puter.com/ instead of http://puter.localhost:4100/
  win.loadURL('http://puter.localhost:4100/');

When electron is ready it creates the window

app.whenReady().then(createWindow);

Kill app when windows are closed (except on macOS)

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') {
    app.quit();
  }
});

On macOS, searches for the app window when clicked and the app is in the background

app.on('activate', () => {
  if (BrowserWindow.getAllWindows().length === 0) {
    createWindow();
  }
});

Package.json

{
  "name": "electron-app",
  "version": "1.0.0",
  "description": "A basic Electron app",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "electron": "^15.0.0"
  }
}

How to run

Run puter self-host

git clone https://www.github.con/HeyPuter/puter
cd puter
npm install
npm start

(do not open http://puter.localhost:4100/)

Run app

cd app
npm install
npm start

Todo

  • Windows
  • Linux
  • macOS
  • Browser
  • More app

License

MIT License

Copyright (c) 2024 DarkCodeStudios

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

DarkCodeStudios

About

We are designing a Puter desktop application πŸŒπŸš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published