-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add WebStorm compatible issues & solutions (#496)
* docs: add WebStorm compatible issues & solutions * docs: fix typo
- Loading branch information
Showing
1 changed file
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
C 社是服务类社团,其创始初心是为学校生活提供便利,如今我们发现,同学们 CAS 活动中遇到的管理、技术、宣传问题,是一个巨大的需求缺口 | ||
|
||
Enspire 的目标很简单,**make CAS life easier for every one** | ||
Enspire 的目标很简单,**Make CAS life easier for everyone** | ||
|
||
如果你不了解**开源项目**是什么,可以参考这个[网站](https://opensource.guide/) | ||
|
||
|
@@ -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/@prisma+[email protected] | ||
- 右键 > Mark Directory as > Not Excluded | ||
|
||
#### ESLint 错误 | ||
|
||
如果您遇到 WebStorm 于代码窗口上提示 `ESLint: Error: invalid Options`,请尝试将 WebStorm IDE 更新至最新版本。 | ||
|
||
## 技术细节 | ||
|
||
该项目主要依赖的库及平台如下: | ||
- [Nuxt](https://nuxt.com) (前端&后端) | ||
- [Prisma](https://prisma.io) (数据库) | ||
|