The page describes different modes of running the swapper for local dev purposes.
Client and functions
vercel dev - executes both backend and frontend.
vercel dev
Frontend only
Below is for frontend client only (excluding Vercel serveless functions).
Vercel
yarn dev — Starts the application in development mode at http://localhost:3000.
yarn dev
http://localhost:3000
yarn build — Creates an optimized production build of your application.
yarn build
yarn start — Starts the application in production mode.
yarn start
yarn type-check — Validate code using TypeScript compiler.
yarn type-check
yarn lint — Runs ESLint for all files in the src directory.
yarn lint
src
yarn format — Runs Prettier for all files in the src directory.
yarn format
yarn commit — Run commitizen. Alternative to git commit.
yarn commit
git commit
Last updated 3 years ago