Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pomdtr/val-town-local
Edit your vals locally
https://github.com/pomdtr/val-town-local
Last synced: about 2 months ago
JSON representation
Edit your vals locally
- Host: GitHub
- URL: https://github.com/pomdtr/val-town-local
- Owner: pomdtr
- Created: 2024-05-04T16:27:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-07T17:55:06.000Z (7 months ago)
- Last Synced: 2024-06-07T19:13:35.102Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Edit vals locally
## Requirements
- [deno](https://deno.com)
## Setup
1. Download this repository
2. Set the VALTOWN_TOKEN environment variable.
1. You can generate an API token [here](https://www.val.town/settings/api).
2. The script will automatically load the token from a .env file in the root directory.
3. Trigger a first sync: `deno task sync`## Usage
### Triggering a 2-way sync
```sh
deno task sync
```### Start a local server
```sh
deno task serve --port 8000 /.tsx
```### Run a val locally
```sh
deno task run /.tsx
```