Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

redwoodjs/example-invoice

Repository files navigation

Invoice

This is an example Redwood app, implementing a very minimal invoice application. Features you can see in action here:

  • Redwood Cells (see TodoListCell.js).
  • Optimistic GraphQL response with Apollo (see AddTodo.js).
  • SVG loader (see Check.js)
  • StyledComponents usage (and stylistic approach)

See a live version of this app here: https://redwood-example-invoice.netlify.com/

Getting Started

Setup

We use Yarn as our package manager. To get the dependencies installed, just do this in the root directory:

yarn

Set up the database, generate the database client, and populate the database with example invoice:

yarn redwood db up
yarn redwood db seed

Fire it up

yarn redwood dev

Run yarn redwood open to open your browser on http://localhost:8910.

Browse to http://localhost:8910 to see the web app. Lambda functions run on localhost:8911 but are proxied via localhost:8910/api/functions/*.