/KeystoneJs-GraphQL-NextJs

Prepare for NextJs frontend & KeystoneJs backend over GraphQL.

Primary LanguageJavaScript

🐄

Keystone graphql nextjs

Full stack node with NextJs frontend & KeystoneJs backend over GraphQL.

  • User Accounts register & login
  • Create / delete posts
  • Create / delete comments
  • Document upload

Up and running

  1. Install the latest Node.js, MongoDB and Yarn.
  2. Inside api/ copy .env.example, rename it .env and customize.
  3. Run yarn to install dependencies.
  4. Run yarn dev to start dev servers.
  5. Visit localhost:3000 for frontend. localhost:3001/keystone for backend.

URLs & Logins

Frontend - localhost:3000

Keystone Backend - localhost:3001/keystone

Example user - user@keystonejs.com

Example password - password

Scripts

Command Purpose
yarn install Installs dependencies in api/ & client/ dirs
yarn dev api/ & client/ built and run for dev.
yarn build Builds api/ & client/ for production
yarn start Starts api/ & client/ from built bundles