a6eebb940f
* feat: improve code * feat: update docs * feat: update docs * Update index.md * Update features.md * Update when.md * Update contributing.md * Update translations.md * feat: clean up * Add files via upload * Update the-first-app.md * Update plugins.md * Update a-b-c.md * Update blocks.md * feat: update docs * Add files via upload * Update charts.md * feat: update navs * Update index.md * Update index.md * Update features.md * Update index.md * Update docker-compose.md * Update create-nocobase-app.md * Update git-clone.md * Update contributing.md * Update translations.md * Update plugins.md * Update the-first-app.md * Add files via upload * Update charts.md * Update charts.md * Update a-b-c.md * Update collections.md * Update menus.md * Update menus.md Co-authored-by: Zhou <zhou.working@gmail.com>
1.3 KiB
1.3 KiB
Git source code
0. Prerequisites
Make sure you have:
- Git, Node.js 14+, Yarn 1.22.x installed
- Configured and started the required database SQLite 3.x, MySQL 8.x, PostgreSQL 10.x choose one
1. Download with Git
git clone https://github.com/nocobase/nocobase.git my-nocobase-app
2. Switch to the project directory
cd my-nocobase-app
3. Install dependencies
yarn install
4. Set environment variables
The environment variables required by NocoBase are stored in the root .env
file, modify the environment variables according to the actual situation, if you don't know how to change them, click here for environment variables description, or you can leave it as default.
# Using sqlite database
DB_DIALECT=sqlite
# sqlite file path
DB_STORAGE=storage/db/nocobase.sqlite
5. Install NocoBase
yarn nocobase install --lang=zh-CN
6. Start NocoBase
Development
yarn dev
Production
# Compile
yarn build
# Start
yarn start # Does not support running on win platform
7. Log in to NocoBase
Open http://localhost:13000 in a web browser. The initial account and password are admin@nocobase.com
and admin123
.