-
Notifications
You must be signed in to change notification settings - Fork 3
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 #129 from 42-world/develop
2월 마지막주 main
- Loading branch information
Showing
54 changed files
with
903 additions
and
219 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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ https://www.42world.kr/ | |
|
||
``` | ||
├── config | ||
│ └── dev.env | ||
│ └── .env.dev | ||
├── src | ||
│ ├── article | ||
│ ├── auth | ||
|
@@ -32,7 +32,11 @@ https://www.42world.kr/ | |
|
||
## 기술스택 | ||
- Frontend: [React.js](https://reactjs.org/) | ||
- Backend: [Nest.js](https://nestjs.com/) | ||
- Backend | ||
- [Nest.js](https://nestjs.com/) | ||
- [TypeORM](https://typeorm.io/#/) | ||
- [Redis](https://redis.io/) | ||
- [Docker](https://www.docker.com/) | ||
|
||
# 프로젝트 | ||
**! Docker 가 설치되어 있어야 합니다.** | ||
|
@@ -54,12 +58,36 @@ https://www.42world.kr/ | |
yarn install | ||
``` | ||
## env 파일 형식 | ||
sample.env.dev 파일을 .env.dev 로 이름을 바꾸고 비어있는 부분을 채워주세요. | ||
`GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET`, `GITHUB_CALLBACK_URL` 은 github oauth 로그인 관련 설정입니다. | ||
이 링크를 참조하여 생성한 한 후 채워주세요 [github building-oauth-apps](https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app) | ||
`EMAIL_*`은 이메일 인증과 관련된 설정입니다. | ||
완벽히 같지는 않지만 이 링크를 참조하여 원하는 설정을 채워주세요 [node-mailer](https://nodemailer.com/about/) | ||
## 실행하기 | ||
- 아래 명령어를 입력하여 실행해주세요. | ||
``` | ||
make dev | ||
yarn start:dev | ||
``` | ||
- 명령어는 디렉토리 최상단에서 실행해주세요. | ||
## 테스트 실행하기 | ||
현재 e2e 테스트의 일부만 제대로 구성되어 있습니다. | ||
다른 테스트 및 유닛테스트는 추후 보강 예정입니다. | ||
``` | ||
./run_test_db.sh | ||
|
||
yarn test:e2e ./test/app.e2e-spec.ts | ||
``` | ||
# 기여하기 | ||
42world 커뮤니티 제작은 오픈소스로 진행되고 있습니다. | ||
|
@@ -94,4 +122,4 @@ https://www.42world.kr/ | |
질문이 생기면 이메일([email protected])로 언제든 연락주세요. | ||
저장소에 별 달아주시는거 잊지마세요 ✨✨✨ | ||
저장소에 별 달아주시는거 잊지마세요 ✨✨✨ |
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,23 @@ | ||
MYSQL_DATABASE=ft_world | ||
MYSQL_USER=ft_world | ||
MYSQL_PASSWORD=ft_world | ||
MYSQL_EXTERNAL_PORT=3306 | ||
API_EXTERNAL_PORT=8888 | ||
DB_HOST=db | ||
DB_PORT=3306 | ||
DB_NAME=ft_world | ||
DB_USER_NAME= | ||
DB_USER_PASSWORD= | ||
REDIS_HOST=redis6379 | ||
REDIS_PORT=6379 | ||
PORT=8888 | ||
GITHUB_CLIENT_ID= | ||
GITHUB_CLIENT_SECRET= | ||
GITHUB_CALLBACK_URL=http://localhost:3000/auth/github/callback | ||
JWT_SECRET= | ||
[email protected] | ||
EMAIL_AUTH_PASSWORD= | ||
EMAIL_HOST=smtp.gmail.com | ||
EMAIL_FROM_USER_NAME=42world | ||
EMAIL_ENDPOINT=http://localhost:8888/ft-auth | ||
FRONT_URL=http://localhost:3000 |
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 was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.