mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 02:45:14 +00:00
1.2 KiB
1.2 KiB
Git source code
0. Prerequisites
Make sure you have:
- Git, Node.js 16+, 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
7. Log in to NocoBase
Open http://localhost:13000 in a web browser. The initial account and password are admin@nocobase.com
and admin123
.