Skip to content

artizen-fund/artizen-frontend

Repository files navigation

Artizen Frontend

Welcome to Artize Frontend codebase. This repository includes the Artizen design components for Season 2 and the API controlers. You can check it by running the command under the Getting started Session below.

Screenshot 2023-05-12 at 12 13 04

Join our community

Artizen Community in Console.xyz

Contributing to Artizen

Check CONTRIBUTING.md before open an issue or PR

Technologies used:

You need to create an account in each one of the following services:

folder structure

  • src/components - React components
  • src/contracts - Smart contracts ABI
  • src/copy - Copy for the app
  • src/forms - JSON schema forms
  • src/gql - GraphQL queries and mutations
  • src/lib - Utility functions
  • src/theme - Theme variables
  • src/types - Typescript types
  • src/utils - Utility functions
  • src/tests - Tests
  • src/tests/e2e - End 2 End Tests
  • src/tests/util - Testing utilities
  • src/tools - Templating tools to create compoenents, forms, etc
  • src/pages - NextJS pages
  • src/pages/project - NextJS page for projects
  • src/pages/admin - NextJS pages for admin users only
  • src/pages/api - NextJS API routes

Environment variables

  • Create a .env file in the root of the project, check .env.test for the required variables

We recommend using 1Password to manage your secrets. File: .env_1password_template.txt is a template to use with 1Password.

Database

Metadata is mainly saved in Hasura. You can find the schema in the file databd-schema.json. You can import it in your Hasura console.

Web3 data is saved in the stage memory of Season smart contract. Find more information in the their Season Contract Repository

Installation

  • requires Node 16.14.2+

Getting Started

Run the development server:

yarn dev

Graphql codegen:

yarn codegen

Create a new component:

yarn generate

Run Cypress tests:

  • make sure sure dev server is running, then…
yarn test

Run Jest tests:

yarn test:jest

Run Playwright end-to-end tests

The following will start a local dev server and run playwright e2e tests against it:

yarn test:e2e:local

Note: playwright e2e tests will run automatically when you perform a git push command (via a pre-push git hook managed by husky). This is a good way to help ensure code quality but there are situations when you may want to bypass this check. Please use good judgement when providing the --no-verify flag to git push in these situations, i.e. use the following responsibly when pushing:

git push --no-verify

Metamask setup

Get Goerli ETH

  • Get some Goerli ETH from faucet to your Metamask wallet

Licence

This code is published under MIT licence