Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikpe/draft
Single page app for drafting.
https://github.com/vikpe/draft
quakeworld
Last synced: 10 days 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T10:55:30.000Z (6 months ago)
- Last Synced: 2024-10-12T12:26:24.984Z (26 days ago)
- Topics: quakeworld
- Language: JavaScript
- Homepage: http://draft.quake.world
- Size: 5.64 MB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# draft [![Deploy](https://github.com/vikpe/draft/actions/workflows/deploy.yml/badge.svg)](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
```