Skip to content
tgmarinhoPublic

About

Managing People (Members), CRUD with Dashboard

Topics

Resources

Stars

41 stars

Watchers

2 watching

Forks

Repository files navigation

Members

A CRUD app to manage members and people, with a dashboard, backed by a GraphQL API on Hasura.

Live demo: https://members-app.vercel.app/

Next.js React Apollo GraphQL Hasura Chakra UI

What it does

  • Create, read, update, and delete members.
  • Mark members as active or inactive. Inactive members stay in the database.
  • List members by active and inactive status.
  • Show a dashboard with counts by active and inactive status, age, gender, and birthdays.
  • Generate a dynamic PDF report from selected fields.

Stack

The app reads and writes data through a GraphQL API served by Hasura.

Run locally

This project uses yarn.

git clone https://github.com/tgmarinho/members.git
cd members
yarn
yarn dev

Other scripts:

  • yarn build builds the production app.
  • yarn start runs the production build.
  • yarn test runs the tests with Jest.

Environment

The app uses Firebase for authentication. Create a .env file based on .env.sample and fill in your Firebase keys:

NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER=
NEXT_PUBLIC_FIREBASE_APP_ID=
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=

The Hasura GraphQL endpoint is set in graphql/apollo.js. Change it there if you run your own Hasura instance.

License

This project is under the MIT license.

About

Managing People (Members), CRUD with Dashboard

Topics

Resources

Stars

41 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages