dfinity / motoko-dev-server

A live reload development server for Motoko smart contracts.
Apache License 2.0
21 stars 1 forks source link

Self-contain 'Vite + React + Motoko' example #2

Closed rvanasa closed 1 year ago

rvanasa commented 1 year ago

Configures the 'Vite + React + Motoko' example to work without expecting the user to manually install and use mo-dev in a separate terminal window.

Local setup:

cd examples/vite-react
npm ci # run once to update dependencies

# run both dev servers in the same terminal
npm start

# run in separate terminals
npm run frontend
npm run backend