OLD - AFFiNE Docs
  • ⚠️
  • ⚠️ This website is inactive
  • ⚠️ For reference only
  • ⚠️ Please use our community site
  • ⚠️ community.affine.pro
  • ⚠️
  • Welcome
    • Welcome to the AFFiNE Docs!
  • Getting Started
    • 🎉Welcome
    • 🆒Install AFFiNE with Docker
    • 💻Deploy AFFiNE to Vercel
    • 🌟How to Get Help
  • Developer Docs
    • 🎉Welcome
    • 🌳Setup
    • 🗂️Working with our code
    • 🖥️Contributions
      • ☘️Writing CSS in AFFiNE
      • 💐Adding UI Components
        • 📐Customize rollup config
      • 🌱Icons
      • 🌐Internationalization
    • 🔭Architecture
      • 🎼CodeMap
      • 💫Editor (Virgo)
      • 🦄Whiteboard (Phasor)
      • 💎Collaboration (OctoBase)
    • 📚Glossary
    • 📒AFFiNE Mentorship Program
  • Internationalization
    • 🎉Welcome
    • 📋Apply
    • 📘Operation Guide
    • 📝Contributors
  • AFFiNE Ambassadors
    • 🎉Welcome
    • ✔️Requirements
    • 🎁Benefits
    • 📋Apply
    • ❓FAQ
    • 📚Branding resources
    • 📝Best practices
    • 📑Resources
  • Branding Resources
    • 🎉Welcome
    • Logo (icon)
    • Logo (text)
    • Logo (3D)
    • Tagline banners
    • Colors
  • Community Links
    • 📢AFFiNE Community
    • 🗣️Official Communities
    • 📗Community Resources
Powered by GitBook
On this page
  • Pre-requisites
  • Installation
  • Further Steps

Was this helpful?

  1. Developer Docs

Setup

PreviousWelcomeNextWorking with our code

Last updated 2 years ago

Was this helpful?

Pre-requisites

Before you follow the rest of this guide you'll want to make sure you have installed (>=16) and (>7.x). You'll also need Git setup to pull our source code from GitHub.

We also recommend using an IDE, such as , and the nx console plugin is recommended for creating dependencies.

Installation

Clone our GitHub

git clone https://github.com/toeverything/AFFiNE.git

Currently we have two versions of AFFiNE:

  • . This version uses the master branch, this is the latest version under active development. We plan to update this to the master branch in the near future.

  • . This version uses the branch pre-alpha, however is no longer actively developed and has been effectively archived.

Select the master branch

cd AFFiNE

Install dependencies

pnpm install

Start AFFiNE

pnpm dev

Default settings will run AFFiNE on localhost, port 3000 - http://localhost:3000

Further Steps

The .env.local file can be found in the project folder. You can add the following variable to enable the development environment.

NODE_ENV=development

For git-cz functionality, please install the corresponding dependencies globally.

npm install -g commitizen conventional-changelog conventional-changelog-cli
🌳
Node.js
pnpm
VSCode
AFFiNE Alpha
AFFiNE Pre-Alpha