Files
pear-docs/guide/starting-a-pear-terminal-project.md
Tobias Baunbæk Christensen ddbf4c9dd7 Update guide/starting-a-pear-terminal-project.md
Co-authored-by: David Mark Clements <david.mark.clements@gmail.com>
2024-02-13 15:08:00 +01:00

752 B

Starting a Pear Terminal Project

[Build with Pear - Episode 04: Pear Terminal Applications]https://www.youtube.com/watch?v=73KVE0wocTE

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.

Step 2. Verify Everything Works

Use pear dev to see that it works.

pear dev

The app will now run. Note that it will keep running until you exit with ctrl + c.

That's all there is to getting a Pear Terminal project started.

Next