docs/docs/en/get-started/installation/git.mdx
:::tip Prerequisites
:::
Choose a NocoBase version (Version Comparison) and run the corresponding command.
<Tabs> <Tab label="Latest version">git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase
git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase
git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase
cd my-nocobase
š¢ This step may take more than ten minutes, depending on your network environment, system configuration, and other factors.
yarn install --frozen-lockfile
The environment variables required by NocoBase are stored in the .env file in the root directory. Modify the environment variables according to your actual situation.
TZ=UTC
APP_KEY=your-secret-key
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=postgres
DB_USER=nocobase
DB_PASSWORD=nocobase
:::warning Environment Variable Descriptions
TZ is used to set the application's time zone, which defaults to the operating system's time zone.APP_KEY is the application's secret key, used for generating user tokens, etc. (If APP_KEY is changed, old tokens will become invalid). It can be any random string. Please change it to your own secret key and ensure it is not exposed.DB_* are database-related. If you are not using the default database service from the example, please modify them according to your actual situation.:::
yarn nocobase install --lang=en-US
Development environment
yarn dev
Production environment (not recommended)
It is not recommended to deploy from source in a production environment. For production, please refer to Production Deployment.
yarn build
yarn start
Open http://localhost:13000 in your browser. The initial account and password are [email protected] and admin123.
:::warning Account Security Warning
After logging in for the first time, please change the default password promptly to ensure system security.
:::