v2-vals-create-a-val-example
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
This val shows how to create a val and add a script file to it both with the SDK and with the API. You can find both examples in main.tsx
.
- Remix this project
- Create your own API token here with Val: Read and write permissions
- Create an environment variable in your remixed project called
VAL_RW_TOKEN
and paste your new API token into it - Run
main.tsx
and you'll create 2 new vals in your account:new-val-sdk
andnew-val-api