Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Browser based pixel editor

License

NotificationsYou must be signed in to change notification settings

hectorbennett/rust-wasm-image-editor

Repository files navigation

Screenshot 2023-03-10 153207

See a very early example in action at

https://seahorse-app-r8jlv.ondigitalocean.app/

Contributing

Contributors welcome! Get in touch or check out thegood first issues.

Requirements

  • node v19.7.0 (Best to install vianvm)
  • wasm-pack (installed globally withnpm install -g wasm-pack)
  • yarn

Development

  • Install packages withyarn. This should also automatically set up husky and install cargo watch and wasm-pack globally.
  • Run the development environment withyarn run dev. This runsyarn run dev:wasm andyarn run dev:js simultaneously and watches for changes to both.

Testing

Run all tests withyarn run test. This calls bothyarn run test:wasm andyarn run test:cypress. We may add unit tests to the TypeScript at a later date.

Benchmarking

It is important to benchmark some functions to make sure we can render updates at 60fps. To make this happen each api call that updates the canvas must take < 16ms.

To run benchmarks runyarn run bench

Deployment

Deployments are triggered whenever a pull request to the 'prod' branch is merged.

You can test the Dockerfile withdocker build .. The test site lives is hosted in a digital ocean app under the following config

DigitalOcean app spec:

name: orca-appregion: lonservices:- dockerfile_path: Dockerfile  github:    branch: main    deploy_on_push: true    repo: hectorbennett/rust-wasm-react-base  http_port: 3000  instance_count: 1  instance_size_slug: basic-xxs  name: rust-wasm-react-base  routes:  - path: /  source_dir: /

[8]ページ先頭

©2009-2025 Movatter.jp