Phitien is a hackathon-built prediction market app where users trade on future events, track positions, and generate new markets from live topics with AI.
- JavaScript
- React
- Node.js
- Express
- JSON local storage
- Anthropic API
Phitien/
backend/
src/
data/
routes/
server.js
frontend/
src/
components/
context/
pages/
- Node.js 18 or newer
- npm
Node 18+ is recommended because the backend uses the built-in fetch API.
cd Phitien\backend
npm install
cd ..\frontend
npm installUse two terminals.
Terminal 1:
cd Phitien\backend
node src/server.jsTerminal 2:
cd Phitien\frontend
npm startThen open http://localhost:3000.
Enter an Anthropic API key in the header, connect it, then type a topic in the generator form. Phitien will request new prediction markets grounded in current news and append them to the existing market list.
- Edit files in
frontend/srcandbackend/src, not infrontend/build - The
buildfolder is generated output fromnpm run build - Market and user data are stored in
backend/src/data/*.json