mirror of
https://github.com/Canner/WrenAI.git
synced 2026-10-25 10:20:15 +08:00
chore: Update README.md and add migration instructions (#294)
This commit is contained in:
+26
-5
@@ -2,16 +2,37 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next
|
||||
|
||||
## Getting Started
|
||||
|
||||
First, run the development server:
|
||||
Step 1. Make sure your node version is 16
|
||||
```bash
|
||||
node -v
|
||||
```
|
||||
|
||||
Step 2. Install dependencies:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
yarn
|
||||
```
|
||||
|
||||
Step 3. Run migrations:
|
||||
|
||||
```bash
|
||||
# Windows
|
||||
SET DB_TYPE=sqlite
|
||||
|
||||
# Linux or MacOS
|
||||
export DB_TYPE=sqlite
|
||||
|
||||
yarn migrate
|
||||
# or
|
||||
npm run migrate
|
||||
```
|
||||
|
||||
Step 4. Run the development server:
|
||||
|
||||
```bash
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
|
||||
Reference in New Issue
Block a user