-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from NewWays-TechForImpactKAIST/feat/project-se…
…tting
- Loading branch information
Showing
20 changed files
with
738 additions
and
211 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
MONGO_CONNECTION_URI=mongodb://localhost:27017 |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.18.0 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dist | ||
node_modules/ | ||
pnpm-lock.yaml | ||
package.json | ||
*.md |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": false, | ||
"jsxSingleQuote": false, | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid", | ||
"quoteProps": "consistent", | ||
"bracketSameLine": false | ||
} |
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 |
---|---|---|
@@ -1,17 +1,48 @@ | ||
# 다양성 평가 리포트 웹사이트 백엔드 | ||
|
||
## 개발환경 | ||
## 프로젝트 소개 | ||
- 사용 기술: Node.js(TypeScript + Express.js), MongoDB | ||
|
||
Express.js, Node.js, MongoDB, TypeScript | ||
## 프로젝트 구조 | ||
``` | ||
src | ||
├── index.ts # 서버 시작 코드 | ||
├── config.ts # 환경변수 설정 | ||
├── controllers # 서비스 로직 | ||
│ ├── scrapResult.ts | ||
│ ├── (...) | ||
├── db # Mongoose 모델 | ||
│ ├── model.ts # 모델 정의, MongoDB 연결 | ||
│ └── schema.ts # 스키마 정의 | ||
├── middlewares # 각종 미들웨어 | ||
│ ├── index.ts | ||
│ ├── (...) | ||
├── routes # 라우팅 로직 | ||
│ ├── index.ts | ||
│ ├── scrapResult.ts | ||
│ ├── (...) | ||
└── utils # 각종 헬퍼 함수 | ||
└── diversity.ts # 다양성 지표 계산 | ||
``` | ||
|
||
## 개발환경 설정 | ||
|
||
### 1. 의존성 설치 (Node.js >= 18.0.0 사용) | ||
```bash | ||
pnpm install | ||
``` | ||
|
||
현재 프로젝트 초기 구조 세팅 중 | ||
### 2. 환경변수 설정 | ||
|
||
TODO : MongoDB 연동, 절대 경로 설정 | ||
.env.development 파일을 만들고, MongoDB URI를 입력합니다. | ||
```bash | ||
cp .env.example .env.development | ||
code .env.development | ||
``` | ||
|
||
## 실행 | ||
### 3. 실행 | ||
|
||
```bash | ||
pnpm install | ||
pnpm run start | ||
pnpm start | ||
``` | ||
|
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
Oops, something went wrong.