Getting Started with Reagent: Greenfield SPA Project with JWT Authentication and GraphQL

Table of Contents

Background

This assumes that one is getting started with a greenfield project for a SPA, JWT authentication, and GraphQL for data access.

Getting Started

lein new reagent reagent-example

Versions

  • React 16.2
  • GraphQL 0.13
  • Apollo
  • Redux

Tools

The following will make working with Reagent project much more user-friendly:

  • cider
  • devcards
  • devtools
  • figwheel
  • re-frame

Dependencies

  • routing: secretary
  • web sockets: haslett
  • styles: garden
  • data: cljs-http

Recipes

Component isolation

Default props

Event handlers as props

Computed values

Isolating CSS

Shallow vs. deep testing

Using TypeScript

Using a StyleGuide

Author: Jason Walsh

j@wal.sh

Last Updated: 2024-08-02 17:00:41