This is a Next.js project bootstrapped with create-next-app
.
npm install
cp .env.example .env.local
Edit .env.local file
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 to EIP-712 sign a voucher redeem operation
We use lefthook to manage our git hooks. For the moment, the following hooks are configured:
- Run
npm run lint
before pushing to remote - Run
npm run prettier
before pushing to remote - Run
npm run ts:check
before pushing to remote
You only need to do this step once. Run npx @arkweid/lefthook install
in the root of the repository to install the git hooks described in the lefthook.yml
file.
You can manually run the installed git hooks by running npx @arkweid/lefthook run pre-push
or by running the alias defined in the package.json
file (npm run lefthook
).
docker build . -f ./Dockerfile -t web-voucher:0.2
docker run -p 3000:3000 web-voucher:0.2