MyGit

heyxyz/hey

Fork: 1558 Star: 23416 (更新于 2024-11-21 03:21:06)

license: AGPL-3.0

Language: TypeScript .

Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

最后发布版本: v4.1.2 ( 2024-07-02 01:41:54)

官方网址 GitHub网址

Hey Monorepo

Requirements

  • Node.js (v18 or higher) - The backbone of our project, make sure you have this installed.
  • pnpm - Our trusty package manager, because who doesn't love faster installs?
  • Postgres App - Our database of choice, because data needs a cozy home.
  • Redis - The speedy in-memory data store, for when you need things done in a flash.

Installation

We harness the power of pnpm workspaces to keep our monorepo running smoother than a freshly buttered pancake.

Clone the repository

Clone the Hey monorepo to your local machine:

git clone git@git.pierre.co:/repos/hey/hey.git

Install NVM (Node Version Manager) and pnpm

Rocking a macOS? You can grab both with Homebrew, like a true brew master:

brew install nvm pnpm

Install Node.js

Use nvm to summon the magical version of Node.js you need:

nvm install

Install dependencies

Teleport yourself to the root of the repository and let pnpm sprinkle its dependency magic:

pnpm install

Create a .env file

Channel your inner wizard and conjure up a .env file from the .env.example template for every package and app that needs it. Don't forget to sprinkle in the necessary environment variables!

cp .env.example .env

Don't forget to play copycat and repeat this .env file creation for every package and app that needs it. Consistency is key!

Start the application

When all the stars align and everything is in place, kick off the application in development mode:

pnpm dev

Build and Test

Build the application

Ready to build the application? Just run this command:

pnpm build

Test the application

Want to run tests while you're developing? Here's how you do it:

pnpm test

Periodic Tasks

Remove unused exports and helpers

We use ts-prune to hunt down and eliminate unused exports and helpers lurking in our codebase. Just a heads-up: you'll need to run this task manually for each package and app. Happy pruning!

cd apps/web; npx ts-prune -i generated.ts

Update dependencies

Time to give our dependencies a makeover! We rely on the magical powers of pnpm to keep everything up-to-date and looking sharp.

script/clean-branches
script/update-dependencies

Update lock file

We trust pnpm to keep our lock file fresh and fabulous!

script/clean-branches
script/update-lock-file

Other tools you might like

Ripgrep

We use Ripgrep to search for text in the codebase. It's like grep and ag had a baby, and that baby grew up to be a speed demon!

Install it via Homebrew:

brew install ripgrep

Search for text in the codebase:

rg "const Verified"

Bundle Analyzer

In apps/web, we've got a bundle analyzer that spills the beans on the size and contents of our production bundles. It's like having X-ray vision for your code!

To generate this output, run:

cd apps/web
ANALYZE=true pnpm build

Fire up this command to build the apps/web project and watch as three browser windows magically pop open, each showcasing bundle details for node, edge, and client bundles. The client bundle is the superhero for page performance, while all bundles play a vital role in development and build performance.

Code of Conduct

We kindly ask all contributors and team members to follow our Code of Conduct. Think of it as our community's golden rulebook - play nice and keep the good vibes flowing!

License

This project is open-sourced under the AGPL-3.0 license. For all the nitty-gritty details, check out the LICENSE file. It's a real page-turner!

P.S

We 💖 you to the moon and back! Your support is like a never-ending supply of coffee for our code. Thank you for making Hey the most awesome place in the universe!

🌸

最近版本更新:(数据更新于 2024-10-24 23:59:56)

2024-07-02 01:41:54 v4.1.2

2024-06-19 18:01:08 v4.1.1

2024-05-27 13:35:49 v4.1.0

2024-03-04 00:45:35 v4.0.0

2024-02-22 18:31:23 v3.0.6-beta

2024-01-21 16:52:05 v3.0.5-beta

2024-01-01 19:18:32 v3.0.4-beta

2023-12-18 21:25:44 v3.0.3-beta

2023-12-06 00:04:21 v3.0.2-beta

2023-11-20 00:57:49 v3.0.1-beta

主题(topics):

blockchain, crypto, dapp, graphql, hacktoberfest, lens-protocol, nextjs, react, social-media, tailwindcss, turborepo, typescript, vitest, wagmi, web3

heyxyz/hey同语言 TypeScript最近更新仓库

2024-11-22 01:36:46 twentyhq/twenty

2024-11-21 22:40:05 LLOneBot/LLOneBot

2024-11-21 20:34:48 CopilotKit/CopilotKit

2024-11-21 16:58:07 labring/FastGPT

2024-11-21 16:14:54 RSSNext/Follow

2024-11-21 16:12:23 x-extends/vxe-table