perseus icon indicating copy to clipboard operation
perseus copied to clipboard

An Apollo GraphQL Server & React Client in a Yarn Workspace deployed with Zeit 2.0

Perseus - A React + GraphQL monorepo boilerplate

Perseus tries to supply a good starting point to build a Monorepo FullStack React/GraphQL App which can be deployed by a single command now.

The project combines:


Install

  • npx perseus-now myapp

Develop

cd myapp && yarn dev

Generate Types (Client)

After you made changes to your GraphQL schema:

cd www && yarn gen (while api running)

Deploy

One Time:

  • Follow instructions on how to setup Now v2.0 https://zeit.co/docs/v2/getting-started/installation
  • edit ./now.json to your needs. set regions and name fields.

Deploy:

  • now in project root

WTF is Perseus?

In Greek mythology, Perseus (/ˈpɜːrsiəs, -sjuːs/; Greek: Περσεύς) is the legendary founder of Mycenae and of the Perseid dynasty, who, alongside Cadmus and Bellerophon, was the greatest Greek hero and slayer of monsters before the days of Heracles. He beheaded the Gorgon Medusa for Polydectes and saved Andromeda from the sea monster Cetus. He was the son of Zeus and the mortal Danaë, as well as the half-brother and great-grandfather of Heracles.