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

Faeture/remove env docker local from git #1484

Merged
merged 3 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_modules/
npm-debug.log
yarn-error.log
.env
.env.docker.local

# OS generated files #
.DS_Store
Expand Down Expand Up @@ -50,4 +51,4 @@ mydb.sql
# Serverless compiled files
packages/Scheduler/lib
id_rsa
id_rsa.pub
id_rsa.pub
89 changes: 0 additions & 89 deletions backend/packages/Upgrade/.env.docker.local

This file was deleted.

81 changes: 81 additions & 0 deletions backend/packages/Upgrade/.env.docker.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#
# APPLICATION
#
APP_NAME=A/B Testing Backend
APP_SCHEMA=http
APP_HOST=localhost
APP_PORT=3030
APP_ROUTE_PREFIX=/api
APP_BANNER=true
APP_DEMO=false
CACHING_ENABLED=false
CACHING_TTL=10

#
# LOGGING
#
LOG_LEVEL=debug
LOG_OUTPUT=dev

#
# PostgreSQL DATABASE
#
TYPEORM_CONNECTION=postgres
TYPEORM_HOST=upgrade-postgres-1
TYPEORM_HOSTNAME_REPLICAS=[]
TYPEORM_PORT=5432
TYPEORM_USERNAME=postgres
TYPEORM_PASSWORD=postgres
TYPEORM_DATABASE=postgres
TYPEORM_SYNCHRONIZE=false
TYPEORM_LOGGING=error
TYPEORM_LOGGER=advanced-console
TYPEORM_MAX_QUERY_EXECUTION_TIME=1000

#
# PATH STRUCTURE
#
TYPEORM_MIGRATIONS=src/database/migrations/**/*.ts
TYPEORM_MIGRATIONS_DIR=src/database/migrations
TYPEORM_ENTITIES=src/api/models/**/*.ts
TYPEORM_ENTITIES_DIR=src/api/models
CONTROLLERS=src/api/controllers/**/*Controller.ts,src/api/controllers/**/*Controller.v*.ts
MIDDLEWARES=src/api/middlewares/**/*Middleware.ts
INTERCEPTORS=src/api/interceptors/**/*Interceptor.ts
TYPEORM_SEED=src/database/seeds/**/*.seed.ts
TYPEORM_FACTORY=src/database/factories/**/*.factory.ts

#
# Swagger
#
SWAGGER_ENABLED=true
SWAGGER_ROUTE=/swagger
SWAGGER_API=**/controllers/*.ts
SWAGGER_JSON=/swagger.json

#
# Google Client Id
#
GOOGLE_CLIENT_ID=google_project_id
DOMAIN_NAME=domain_name
SCHEDULER_STEP_FUNCTION=arn_name
AWS_REGION=aws-region
HOST_URL=function_url
TOKEN_SECRET_KEY=carnegielearning

#
# Email
#
EMAIL_FROM="email"
EMAIL_EXPIRE_AFTER_SECONDS=36000
EMAIL_BUCKET="s3_bucket"

#
# Initialization
#
ADMIN_USERS=user@email:role/\user2@email:role
CLIENT_API_SECRET=secret
CLIENT_API_KEY=key

CONTEXT_METADATA={"context_identifier_1":{"CONDITIONS":["potential-condition-1","potential-condition-1"],"GROUP_TYPES":["client_group_identifier_1","client_group_identifier_2","client_group_identifier_3"],"EXP_IDS":["decision_point_target_identifier_1","decision_point_target_identifier_2"],"EXP_POINTS":["decision_point_site_identifier_1","decision_point_site_identifier_2"]}}
METRICS=[{"metric":"totalTimeSeconds","datatype":"continuous"},{"groupClass":"masteryWorkspace","allowedKeys":["calculating_area_various_figures","Compare_functions_diff_reps_quadratic"],"attributes":[{"metric":"timeSeconds","datatype":"continuous"}]}]
37 changes: 14 additions & 23 deletions backend/packages/Upgrade/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ APP_PORT=3030
APP_ROUTE_PREFIX=/api
APP_BANNER=true
APP_DEMO=false
CACHING_ENABLED=true
CACHING_ENABLED=false
CACHING_TTL=10
#
# LOGGING
Expand Down Expand Up @@ -52,38 +52,29 @@ SWAGGER_ROUTE=/swagger
SWAGGER_API=**/controllers/*.ts
SWAGGER_JSON=/swagger.json

#
# Status Monitor
#
MONITOR_ENABLED=true
MONITOR_ROUTE=/monitor
MONITOR_USERNAME=admin
MONITOR_PASSWORD=1234

#
# Google Client Id
#
GOOGLE_CLIENT_ID=google_project_id
DOMAIN_NAME =
SCHEDULER_STEP_FUNCTION=arn:aws:states:us-east-1:781188149671:stateMachine:development-upgrade-experiment-scheduler
# SCHEDULER_STEP_FUNCTION=arn:aws:states:us-east-1:781188149671:stateMachine:staging-upgrade-experiment-scheduler
AWS_REGION=us-east-1
HOST_URL = https://upgrade-dev-backend.edoptimize.com/api
TOKEN_SECRET_KEY = carnegielearning
DOMAIN_NAME=domain_name
SCHEDULER_STEP_FUNCTION=arn_name
AWS_REGION=aws-region
HOST_URL=function_url
TOKEN_SECRET_KEY=carnegielearning

#
# Email
#
EMAIL_FROM = "[email protected]",
EMAIL_EXPIRE_AFTER_SECONDS = 36000
EMAIL_BUCKET = "upgrade-csv-upload"
EMAIL_FROM="email"
EMAIL_EXPIRE_AFTER_SECONDS=36000
EMAIL_BUCKET="s3_bucket"

#
# Initialization
#
ADMIN_USERS = [email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin/\[email protected]:admin
CLIENT_API_SECRET = secret
CLIENT_API_KEY = key
ADMIN_USERS=user@email:role/\user2@email:role
CLIENT_API_SECRET=secret
CLIENT_API_KEY=key

CONTEXT_METADATA = {"add":{"EXP_IDS":["add-id1","add-id2"],"EXP_POINTS":["add-point1","add-point2"],"GROUP_TYPES":["add-group1","add-group2"],"CONDITIONS":["add-con1","add-con2","add-con3"]},"sub":{"EXP_IDS":["sub-id1","sub-id2"],"EXP_POINTS":["sub-point1","sub-point2"],"GROUP_TYPES":["sub-group1","sub-group2"],"CONDITIONS":["sub-con1","sub-con2","sub-con3"]},"mul":{"EXP_IDS":["mul-id1","mul-id2"],"EXP_POINTS":["mul-point1","mul-point2"],"GROUP_TYPES":["mul-group1","mul-group2"],"CONDITIONS":["mul-con1","mul-con2","mul-con3"]},"div":{"EXP_IDS":["div-id1","div-id2"],"EXP_POINTS":["div-point1","div-point2"],"GROUP_TYPES":["div-group1","div-group2"],"CONDITIONS":["div-con1","div-con2","div-con3"]}}
METRICS = [{"metric": "totalTimeSeconds","datatype": "continuous"}, { "groupClass": "masteryWorkspace", "allowedKeys": [ "calculating_area_various_figures", "Compare_functions_diff_reps_quadratic" ], "attributes": [{ "metric": "timeSeconds", "datatype": "continuous"}]}]
CONTEXT_METADATA={"context_identifier_1":{"CONDITIONS":["potential-condition-1","potential-condition-1"],"GROUP_TYPES":["client_group_identifier_1","client_group_identifier_2","client_group_identifier_3"],"EXP_IDS":["decision_point_target_identifier_1","decision_point_target_identifier_2"],"EXP_POINTS":["decision_point_site_identifier_1","decision_point_site_identifier_2"]}}
METRICS=[{"metric":"totalTimeSeconds","datatype":"continuous"},{"groupClass":"masteryWorkspace","allowedKeys":["calculating_area_various_figures","Compare_functions_diff_reps_quadratic"],"attributes":[{"metric":"timeSeconds","datatype":"continuous"}]}]
1 change: 1 addition & 0 deletions backend/packages/Upgrade/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ npm-debug.log
yarn-error.log
yarn.lock
.env
.env.docker.local

# OS generated files #
.DS_Store
Expand Down
Loading