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

Removes unused code, updates dependencies, new README, and other items #86

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
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
82 changes: 44 additions & 38 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
ADS_PORT=3030
DISCOUNTS_PORT=2814
AUTH_PORT=7578
DBM_PORT=7595
DD_API_KEY=
DD_APP_KEY=
# this is used specifically for datadog-ci
DATADOG_API_KEY=

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specifically for the CI tool, right? If so, can we just add a comment about that?

DD_ENV=storedog-local
DD_HOSTNAME=storedog-local-host

# for puppeteer
STOREDOG_URL=http://nginx:80

# for spree, discounts, ads-python (if used), and dbm (if used)
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
DD_API_KEY=
ATTACK_SSH=0
ATTACK_GOBUSTER=0
ATTACK_HYDRA=0
ATTACK_HOST=nginx
ATTACK_PORT=80
ATTACK_SSH_INTERVAL=0
ATTACK_GOBUSTER_INTERVAL=0
ATTACK_HYDRA_INTERVAL=0

# set versions of specific services (these are used in the `docker-compose.yml` file)
DD_VERSION_FRONTEND=1.0.0
# use for worker service too, since they use the same image
DD_VERSION_BACKEND=1.0.0
DD_VERSION_DBM=1.0.0
DD_VERSION_ADS=1.0.0
DD_VERSION_DISCOUNTS=1.0.0

# NEXT_PUBLIC_* are exposed to the web browser and the server #
# FOR INSTRUQT: replace all localhost with the instruqt urls
NEXT_PUBLIC_SPREE_API_HOST=http://web:4000
NEXT_PUBLIC_SPREE_CLIENT_HOST=http://localhost:4000
NEXT_PUBLIC_SPREE_IMAGE_HOST=http://localhost:4000
NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN=localhost
NEXT_PUBLIC_FRONTEND_URL=http://frontend:3000
# for local development (on localhost)
NEXT_PUBLIC_ADS_PORT=3030
NEXT_PUBLIC_DISCOUNTS_PORT=2814
NEXT_PUBLIC_ADS_ROUTE="http://localhost"
NEXT_PUBLIC_DISCOUNTS_ROUTE="http://localhost"
# for labs/public use
NEXT_PUBLIC_ADS_URL_FULL="http://localhost:3030"
NEXT_PUBLIC_DISCOUNTS_URL_FULL="http://localhost:2814"

NEXT_PUBLIC_DD_APPLICATION_ID=""
NEXT_PUBLIC_DD_CLIENT_TOKEN=""
NEXT_PUBLIC_DD_SITE="datadoghq.com"
NEXT_PUBLIC_DD_SERVICE="frontend"
NEXT_PUBLIC_DD_VERSION="1.0.0"
NEXT_PUBLIC_DD_ENV="development"
NEXT_PUBLIC_AUTH_ROUTE="http://localhost"
NEXT_PUBLIC_AUTH_PORT="7578"
NEXT_PUBLIC_DBM_ROUTE="http://localhost"
NEXT_PUBLIC_DBM_PORT="7595"
# these are also used in `docker-compose.yml`

# used in server-side fetch calls in frontend service, note the use of full domains
NEXT_PUBLIC_FRONTEND_API_ROUTE=http://nginx:80
NEXT_PUBLIC_SPREE_API_HOST=http://nginx/services/backend

# for all client-side spree fetch calls from frontend service
NEXT_PUBLIC_SPREE_CLIENT_HOST=/services/backend
NEXT_PUBLIC_SPREE_IMAGE_HOST=/services/backend
# configured in the next.config.js file to allow for image loading from the spree service
NEXT_PUBLIC_SPREE_ALLOWED_IMAGE_DOMAIN=nginx

# called in client-side fetch calls from frontend service (no need to include the domain)
NEXT_PUBLIC_ADS_ROUTE=/services/ads
NEXT_PUBLIC_DISCOUNTS_ROUTE=/services/discounts
NEXT_PUBLIC_DBM_ROUTE=/services/dbm

# used in frontend service app.tsx file for RUM config
NEXT_PUBLIC_DD_APPLICATION_ID=
NEXT_PUBLIC_DD_CLIENT_TOKEN=
NEXT_PUBLIC_DD_SITE=datadoghq.com
NEXT_PUBLIC_DD_SERVICE=store-frontend
# keep this in step with the DD_VERSION_FRONTEND identified above
NEXT_PUBLIC_DD_VERSION=1.0.0
NEXT_PUBLIC_DD_ENV=storedog-local
17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

264 changes: 98 additions & 166 deletions README.md

Large diffs are not rendered by default.

Loading