/nextjs-zoid

NextJs with krackenJs/Zoid

Primary LanguageJavaScriptMIT LicenseMIT

NextJs Zoid

Note

I don't have the pretention to say that this is the way to do it. Far from that... Actually this could be a bad integration, but it works and since I never receive any reply or help and still see people interested in using Zoid with NextJs here is a starting point

Note

You want to share your experience with NextJs and Zoid, please open a PR <3

Demo

Visit the following third party website third-party-nextjs-zoid.vercel.app links to see zoid in action

  1. Extemely Basic integration Button

  2. Some features tested Advanced

Note

Each Zoiid Ifame comes from the following NextJs 14 app

About this repo

This repo is based on the starter create-t3-turbo It uses Turborepo and contains:

.github
  └─ workflows
        └─ CI with pnpm cache setup
.vscode
  └─ Recommended extensions and settings for VSCode users
apps
  ├─ nextjs
  |   ├─ Next.js 14
  |   ├─ React 18
  |   ├─ Tailwind CSS
  |   ├─ Zoid
  |   └─ RollupJs
  └─ third-party-website
      ├─ Next.js 14
      ├─ React 18
      ├─ Tailwind CSS
      └─ Vanilla HTML
packages
  └─ ui
      └─ Start of a UI package for the webapp using shadcn-ui
tooling
  ├─ eslint
  |   └─ shared, fine-grained, eslint presets
  ├─ prettier
  |   └─ shared prettier configuration
  ├─ tailwind
  |   └─ shared tailwind configuration
  └─ typescript
      └─ shared tsconfig you can extend from

In this template, we use @acme as a placeholder for package names. As a user, you might want to replace it with your own organization or project name. You can use find-and-replace to change all the instances of @acme to something like @my-company or @project-name.

Quick Start

To get it running in local, follow the steps below:

1. Setup dependencies

# Install dependencies
pnpm i

# Configure environment variables
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env

2. Run the TurboRepo

# Run the TuboRepo project
turbo run dev

3. Visit one of the following example

Useful Links :

References

The stack originates from create-t3-app.