-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce initial project setup cost by introducing Feature Toggle funct…
…ionality (#230) * Change default env to cut initialization cost down * Change `docker-compose.yml` * Add description to `.env.development` * Add config module * Remove config module * Add settings module * Add settings api * Add setting store * Add yorkie intelligence feature toggle * Add fileUpload feature toggle * Update docker-compose-full.yml * Update `README.md` to simplify project initialization * Add GitHub OAuth App creation guide * Update docs reference url * Add missing variable in useEffect * Add hyperlink to `frontend/README.md` Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Fix README.md typo Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
57b6b28
commit c8f266a
Showing
33 changed files
with
510 additions
and
149 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
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 |
---|---|---|
@@ -1,21 +1,30 @@ | ||
version: "3.8" | ||
|
||
services: | ||
codepair-backend: | ||
yorkie: | ||
image: "yorkieteam/yorkie:latest" | ||
command: ["server", "--enable-pprof"] | ||
restart: always | ||
ports: | ||
- "8080:8080" | ||
- "8081:8081" | ||
|
||
mongo: | ||
build: | ||
context: ../ | ||
context: ./mongodb_replica | ||
args: | ||
MONGO_VERSION: 4 | ||
environment: | ||
# Environment variables need to be passed to the container | ||
DATABASE_URL: "DATABASE_URL" | ||
GITHUB_CLIENT_ID: "GITHUB_CLIENT_ID" | ||
GITHUB_CLIENT_SECRET: "GITHUB_CLIENT_SECRET" | ||
GITHUB_CALLBACK_URL: "<BACKEND_BASE_URL>/auth/login/github" | ||
JWT_AUTH_SECRET: "JWT_AUTH_SECRET" | ||
FRONTEND_BASE_URL: "FRONTEND_BASE_URL" | ||
YORKIE_API_ADDR: "YORKIE_API_ADDR" | ||
YORKIE_PROJECT_NAME: "YORKIE_PROJECT_NAME" | ||
YORKIE_PROJECT_SECRET_KEY: "YORKIE_PROJECT_SECRET_KEY" | ||
AWS_S3_BUCKET_NAME: "YOUR_S3_BUCKET_NAME" | ||
MONGO_REPLICA_HOST: 127.0.0.1 | ||
MONGO_REPLICA_PORT: 27017 | ||
MONGO_INITDB_DATABASE: "codepair" | ||
MONGO_COMMAND: "mongo" | ||
ports: | ||
- "3000:3000" | ||
- "27017:27017" | ||
restart: unless-stopped | ||
healthcheck: | ||
test: | ||
["CMD", "mongo", "admin", "--port", "27017", "--eval", "db.adminCommand('ping').ok"] | ||
interval: 5s | ||
timeout: 2s | ||
retries: 20 |
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,18 @@ | ||
import { Test, TestingModule } from "@nestjs/testing"; | ||
import { SettingsController } from "./settings.controller"; | ||
|
||
describe("SettingsController", () => { | ||
let controller: SettingsController; | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
controllers: [SettingsController], | ||
}).compile(); | ||
|
||
controller = module.get<SettingsController>(SettingsController); | ||
}); | ||
|
||
it("should be defined", () => { | ||
expect(controller).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.