mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 14:34:19 +01:00
19 lines
351 B
Markdown
19 lines
351 B
Markdown
# Starting a Pear Terminal Project
|
|
|
|
## Step 1. Init
|
|
|
|
First create a new project using `pear init`.
|
|
|
|
```
|
|
mkdir chat-bot
|
|
cd chat-bot
|
|
pear init --yes
|
|
```
|
|
|
|
This creates the base project structure.
|
|
|
|
- `package.json`. App configuration. Notice the `pear` property.
|
|
- `index.js`. App entrypoint.
|
|
- `app.js`. Main code.
|
|
- `test/index.test.js`. Test skeleton.
|