Skip to content

CabinDAO/cabin.city

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cabin is building a network city of modern villages. Together, we are growing intergenerational neighborhoods: places where we know our neighbors and raise kids together. Cabin neighborhoods are located in walkable pockets of family-friendly urbanism with nearby parks and nature. Our goal is to create neighborhoods where we'd want to grow up.

This repo is the code for the Cabin app.

Dev Setup

See the installation guide for instructions.

Smart Contracts Management

More info here.

Development/Deployment Flow

When working on a new feature, follow these steps:

  • Create a new branch from dev
  • Make your changes
  • Create a PR to dev
    • This will create a preview deployment on Vercel
  • Once the PR is approved, merge it into dev
  • Once the changes are tested and ready to be deployed to production, create a PR from dev to main
    • Make sure you double check all the changes previously merged to dev
  • Once the PR is approved, merge it into main and push it
    • Migrations will be run against the production database

Google Analytics

More info here.

UI Components

Removed for now. It's lazy-universal-dotenv dependency had an ancient dotenv version and broke our env var loading

Storybook is used to document and develop UI components. To run storybook:

npm run storybook

Onchain Data Sync

More info here.

Deployment

Commits to main are deployed automatically.

To deploy manually:

# Login if not already logged in
vercel login

# Deploy to dev
vercel

# Deploy to prod
vercel --prod

Github Actions

TODO

Code Generation

To generate GQL code for Hats synced data, run:

npm run codegen

To generate the smart contract types:

About

Cabin's community and neighborhood directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published