Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Template of monorepo for KeystoneJS CMS and NextJS client.

License

Notifications You must be signed in to change notification settings

vlnevyhosteny/keystonejs-nextjs-monorepo

Repository files navigation

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

KeystoneJS and NextJS monorepo template

Monorepo template for client-server applications using KeystoneJS (as a server) and NextJS (as a client). There is also common library to share code between both server and client.

Build with

Why yarn workspaces?

First approach to create monorepo was using Nx. But KeystoneJS is at the time of creating this repo not really suited to be used in monorepo. See discussion. Came up with this solution using Yarn workspaces which is not that convenient but working.

Getting started

Prerequisites

  • Node@16
  • Yarn

Installation

Install packages:

yarn install

Usage

Just change names in package.json files and install packages.

To run bootstraped code locally run yarn dev:server to run server and yarn dev:client to run client.