Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add WebStorm compatible issues & solutions #496

Merged
merged 2 commits into from
Mar 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

C 社是服务类社团,其创始初心是为学校生活提供便利,如今我们发现,同学们 CAS 活动中遇到的管理、技术、宣传问题,是一个巨大的需求缺口

Enspire 的目标很简单,**make CAS life easier for every one**
Enspire 的目标很简单,**Make CAS life easier for everyone**

如果你不了解**开源项目**是什么,可以参考这个[网站](https://opensource.guide/)

Expand All @@ -15,28 +15,45 @@ pnpm install
```

### 配置环境变量

```bash
cp .env.example .env
```
并编辑其中内容。

### 初始化数据库

```bash
prisma migrate
prisma generate
```

### 导入社团信息

```bash
pnpm run update-club-info
```

### 运行开发服务器

```bash
pnpm run dev
```
浏览器登陆`http://localhost:3000`即可。

### WebStorm 兼容性问题
#### pnpm & Prisma

[WebStorm](https://www.jetbrains.com/zh-cn/webstorm/) + [pnpm](https://pnpm.io/zh/) + [Prisma](https://www.prisma.io/) 目前存在兼容性问题,目前解决方式如下:

- 每次更新 Prisma 后于左侧文件目录中查找 node_modules/.pnpm/@[email protected]
- 右键 > Mark Directory as > Not Excluded

#### ESLint 错误

如果您遇到 WebStorm 于代码窗口上提示 `ESLint: Error: invalid Options`,请尝试将 WebStorm IDE 更新至最新版本。

## 技术细节

该项目主要依赖的库及平台如下:
- [Nuxt](https://nuxt.com) (前端&后端)
- [Prisma](https://prisma.io) (数据库)
Expand Down