Skip to content

Commit 2e7d006

Browse files
committed
Move to Preact + Vite with SSG
1 parent cdbe9c7 commit 2e7d006

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3284
-18439
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

.gitignore

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
110
node_modules
2-
/build
3-
/*.log
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
418
.idea
5-
size-plugin.json
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1-
# Trow
1+
# Trow.app
22

33
It's like [scrum poker](https://en.wikipedia.org/wiki/Planning_poker), but without the poker!
44

5-
A dead simple and lightweight WebRTC collaborative voting/estimating system, built on TypeScript and Preact.
5+
A dead simple and lightweight WebRTC collaborative voting/estimating system, built with Preact.
66
Invite your friends and/or coworkers into rooms, start voting on the ideas.
77

8-
## Building and developing
8+
https://en.wikipedia.org/wiki/Trow_(folklore)
99

10-
* `npm install`: Installs dependencies
10+
Runs fully on the client side, but needs a signalling server for the initial connection.
1111

12-
* `npm start`: Run a development, HMR server
1312

14-
* `npm run serve`: Run a production-like server
13+
## Getting Started
1514

16-
* `npm run build`: Production-ready build
15+
First of all, `pnpm install`
1716

18-
* `npm run lint`: Pass TypeScript files using TSLint
17+
- `pnpm dev` - Starts a dev server at http://localhost:5173/
1918

20-
In order to develop locally, you might need to install [PeerJS server](https://github.com/peers/peerjs-server) and run it locally (default config points to port 9000).
19+
- `pnpm build` - Builds for production, emitting to `dist/`. Prerenders app to static HTML
2120

22-
```
23-
npm i -g peer
24-
peerjs -p 9000
25-
```
21+
- `pnpm preview` - Starts a server at http://localhost:4173/ to test a production build locally
2622

27-
## Deployment
23+
## Advanced debugging
2824

29-
Be sure to specify `PEERJS_SERVER` environment variable to point your production build to your PeerJS server.
25+
To get verbose browser console logging in production, use https://debug.trow.app/ as an alternative url.
26+
Verbose logging is always enabled in development mode.
27+
28+
## Support the project
29+
30+
While this is developed at my free time and my own amusement, it would not be possible without [peer.js](https://peerjs.com/). Please consider [donating](https://opencollective.com/peer) to keep the signalling servers alive.

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/trow.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="color-scheme" content="light dark" />
8+
<title>trow.app</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script prerender type="module" src="/src/index.tsx"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)