Skip to content

Repository files navigation

This is a Small Transfers Next.js starter project. (See also the Small Transfers AI Starter.)

It was bootstrapped with create-next-app, and uses shadcn/ui for UI, iron-session for session management, and Zustand for client state management.

License: MIT Node.js = 22.x Live demo

Deploy with Vercel

Getting Started

Create a merchant account at Small Transfers to obtain your publishable and secret keys.

Set the environment variables. For running locally, cp .env.example .env.local, then edit .env.local.

  • NEXT_PUBLIC_SMALL_TRANSFERS_BASE_URL: The base URL for your Small Transfers API calls. Defaults to https://test.smalltransfers.com. If deploying live, set to https://smalltransfers.com.
  • NEXT_PUBLIC_SMALL_TRANSFERS_PUBLISHABLE_KEY: The publishable key for your Small Transfers account.
  • SMALL_TRANSFERS_SECRET_KEY: The secret key for your Small Transfers account.
  • IRON_SESSION_PASSWORD: The password to encrypt the session cookie. You can generate it with:
    node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"

Run the development server:

pnpm install && pnpm dev
# or
npm install && npm run dev
# or
yarn install && yarn dev
# or
bun install && bun dev

Open http://localhost:3000 with your browser to see the result.

Learn More

See the following Small Transfers resources:

Contributing

Contributions are welcome! Feel free to submit a pull request.

About

Next.js Starter for Small Transfers.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages