README.md 1.16 KB
Newer Older
dechen lin's avatar
dechen lin committed
1
# MinerU web
dechen lin's avatar
dechen lin committed
2

dechen lin's avatar
dechen lin committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
## Table of Contents
- [Local Frontend Development](#local-frontend-development)
- [Technology Stack](#technology-stack)

## Local Frontend Development

### Prerequisites
- Node.js 18.x
- pnpm

### Installation Steps

1. Install Node.js 18
   - Visit the [Node.js official website](https://nodejs.org/) to download and install Node.js version 18.x

2. Install pnpm
   ```bash
   npm install -g pnpm
3. Clone the repository
    ```git clone https://github.com/opendatalab/MinerU
    cd ./projects/web
    ```
4. Install dependencies
    ```
    pnpm install
    ```
5. Run the development server
    ```
    pnpm run dev
    ```
6. ⚠️ Note: This command is for local development only, do not use for deployment!
Open your browser and visit http://localhost:5173 (or another address output in the console)

7. Ensure that the backend service in ./projects/web_demo is running

8. If you encounter an error when executing `pnpm install`, you can switch to an alternative package manager.
   ```
   npm install -g yarn
   yarn
   yarn start
   ```


##  Building the Project
dechen lin's avatar
dechen lin committed
47
```
dechen lin's avatar
dechen lin committed
48
pnpm run build
dechen lin's avatar
dechen lin committed
49
```
dechen lin's avatar
dechen lin committed
50
51
52
53
54
55
## Technology Stack
- React
- Tailwind CSS
- typeScript
- zustand
- ahooks