Files
whetstone_DSL/example_projects/twitter_clone_local/README.md

30 lines
538 B
Markdown

# Twitter Clone Local
Minimal local Twitter-like demo (no npm dependencies).
## Run
```bash
cd /home/bill/Documents/CLionProjects/whetstone_DSL/example_projects/twitter_clone_local
node server.js
```
Then open:
- http://localhost:3000
## Features
- Create tweets
- Like tweets
- Reply to tweets
- Timeline refresh
## API
- `GET /api/health`
- `GET /api/tweets`
- `POST /api/tweets` body: `{ "author": "...", "text": "..." }`
- `POST /api/tweets/:id/like`
- `POST /api/tweets/:id/reply` body: `{ "author": "...", "text": "..." }`