FixItWand
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.
Viewing readonly version of main branch: v337View latest version
- Install dependencies:
deno cache --node-modules-dir
- Generate DB schemas:
deno run -A --node-modules-dir npm:drizzle-kit generate
- Run the project:
deno run -A backend/index.ts
- Lint:
deno lint
- Format:
deno fmt
- Test:
deno test -A
- Run single test:
deno test -A --filter=<test_name>
- TypeScript w/Deno runtime
- React for frontend components with JSX
- No semicolons; use trailing commas
- Use arrow functions for component definitions and handlers
- Import React components with JSX pragma comment for esm.sh
- Favor explicit typing over implicit any (though noImplicitAny is false)
- Use async/await for asynchronous operations
- Error handling: propagate errors in backend with app.onError
- Database: Drizzle ORM with PostgreSQL
- Naming: camelCase for variables/functions, PascalCase for components/types
- File organization: backend/ for server code, frontend/ for client code
- Comments: Use JSDoc style for significant functions and components