https://github.com/vikpe/draft
Single page app for drafting.
https://github.com/vikpe/draft
quakeworld
Last synced: over 1 year ago
JSON representation
Single page app for drafting.
- Host: GitHub
- URL: https://github.com/vikpe/draft
- Owner: vikpe
- License: mit
- Created: 2020-09-17T08:08:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T10:55:30.000Z (about 2 years ago)
- Last Synced: 2025-03-18T20:07:43.708Z (over 1 year ago)
- Topics: quakeworld
- Language: JavaScript
- Homepage: http://draft.quake.world
- Size: 5.64 MB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# draft [](https://github.com/vikpe/draft/actions/workflows/deploy.yml)
> Single page web app for drafting
## Install/getting started
1. Clone repo
2. `yarn install`
3. `yarn dev` - will serve app @ `http://localhost:5173`
## Editing players and teams
Edit `src/data.js`
**Example**
```js
export const teams = {
red: {
id: "red",
playerNames: ["bps"],
sortOrder: 1,
},
blue: {
id: "blue",
playerNames: ["Milton"],
sortOrder: 2,
},
};
export const players = {
"AiRman": Player("AiRman", "pl"),
"Andeh": Player("Andeh", "se"),
"anni": Player("anni", "de"),
"badsebi": Player("badsebi", "pl"),
};
```
## Development
Start development server at `http://localhost:5173`, live-reloading changes.
```bash
yarn dev
```
## Production
Bundle and output build to `dist/`.
```bash
yarn build
```