LogoLogo
  • Pear by Holepunch
  • Pear runtime
    • Command-Line-Interface (CLI)
    • Application-Programming-Interface (API)
    • Application Configuration
  • Bare reference
    • Overview
    • Application-Programming-Interface (API)
    • Node.js Compatibility with Bare
    • Bare Modules
  • Guides
    • Getting Started
    • Starting a Pear Desktop Project
    • Making a Pear Desktop Application
    • Starting a Pear Terminal Project
    • Making a Pear Terminal Application
    • Sharing a Pear Application
    • Marking a Release
    • Making a Bare Mobile Application
    • Debugging a Pear Terminal Application
    • Creating a Pear Init Template
  • Building blocks
    • Hypercore
    • Hyperbee
    • Hyperdrive
    • Autobase
    • HyperDHT
    • Hyperswarm
  • How-tos
    • Connect two peers
    • Connect many peers
    • Replicate & persist
    • Manage multiple Hypercores
    • Share append-only databases
    • Create a p2p filesystem
  • Helpers
    • Corestore
    • Localdrive
    • Mirrordrive
    • Secretstream
    • Compact encoding
    • Protomux
  • Tools
    • Hypershell
    • Hypertele
    • Hyperbeam
    • Hyperssh
    • Drives
  • Apps
    • Keet
  • Examples
    • Bare on Mobile
    • React App using Pear
Powered by GitBook

Copyright © 2024 - 2025 Holepunch, S.A. de C.V. All rights reserved.

On this page
  • Step 1. Init
  • Step 2. Verify Everything Works
  • Next
  1. Guides

Starting a Pear Terminal Project

Last updated 6 months ago

Build with Pear - Episode 04: Pear Terminal Applications

Step 1. Init

First create a new project using pear init --type terminal.

mkdir chat-app
cd chat-app
pear init --yes --type terminal

This creates the base project structure.

  • package.json. App configuration. Notice the pear property.

  • index.js. App entrypoint.

  • test/index.test.js. Test skeleton.

Step 2. Verify Everything Works

Use pear run to see that it works.

pear run --dev .

A directory or link needs to be specified with pear run, here . denotes the current Project directory.

The app will now run. That's all there is to getting a Pear Terminal project started.

Next

Making a Pear Terminal Application