From 04f7df4f6cffb568498f18eab1f2317197936188 Mon Sep 17 00:00:00 2001 From: Dennis Collaris <d.a.c.collaris@uu.nl> Date: Thu, 31 Oct 2024 08:46:03 +0000 Subject: [PATCH] chore: remove env from git --- .gitignore | 1 + README.md | 2 ++ apps/web/.env | 24 ------------------------ apps/web/.env.development | 14 +++++++------- 4 files changed, 10 insertions(+), 31 deletions(-) delete mode 100644 apps/web/.env diff --git a/.gitignore b/.gitignore index c3f3c9a96..e592d82f7 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ yarn-error.log* .pnpm-debug.log* # local env files +.env .env.local .env.development.local .env.test.local diff --git a/README.md b/README.md index aa3c8ebb6..f787237c7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ First run `pnpm i` on the root of the workspace to install all dependencies. It If you need to install a new dependency or upgrade an existing one, do so in the respective package.json and rerun `pnpm i` in the root of the workspace. If you find any issues, feel free to delete the node_modules folder from the workspace root and from the app/lib which you are changing the dependency and rerun the `pnpm i` command from the root of the workspace. Most issues are solved by then. +Secondly, make sure you create a local `.env` file. For local development, you can simply copy the contents of the `.env.development` template in the `/apps/web` directory to a new `.env` file and you should be good to go. + ### Running Storybook.js To run the dev storybook (implementing visualizations) simply run `pnpm sb` and once it is running, ctrl-click the link what appears in the terminal. The url should be [http://localhost:6006]. diff --git a/apps/web/.env b/apps/web/.env deleted file mode 100644 index 24c5fc801..000000000 --- a/apps/web/.env +++ /dev/null @@ -1,24 +0,0 @@ -GRAPHPOLARIS_VERSION=dev -BACKEND_URL=http://localhost -BACKEND_WSS_URL=ws://localhost:3001/ -STAGING=dev -SKIP_LOGIN=true -BACKEND_USER=:3000 -GRAPHPOLARIS_VERSION=dev - -SENTRY_ENABLED=false -SENTRY_URL= - -GP_AUTH_URL= - -WIP_TABLEVIS=false -WIP_NODELINKVIS=false -WIP_RAWJSONVIS=false -WIP_PAOHVIS=true -WIP_MATRIXVIS=true -WIP_SEMANTICSUBSTRATESVIS=true -WIP_MAPVIS=true - -WIP_INSIGHT_SHARING=true -WIP_VIEWER_PERMISSIONS=true -WIP_SHARABLE_EXPLORATION=true \ No newline at end of file diff --git a/apps/web/.env.development b/apps/web/.env.development index 8375aafc0..f56103b54 100644 --- a/apps/web/.env.development +++ b/apps/web/.env.development @@ -1,10 +1,10 @@ -VITE_BACKEND_URL=http://localhost -VITE_BACKEND_WSS_URL=ws://localhost:3001/ -VITE_STAGING=dev -VITE_SKIP_LOGIN=true -VITE_BACKEND_USER=:3000 -VITE_BACKEND_QUERY=:3003 -VITE_BACKEND_SCHEMA=:3002 +GRAPHPOLARIS_VERSION=dev +BACKEND_URL=http://localhost +BACKEND_WSS_URL=ws://localhost:3001/ +STAGING=dev +SKIP_LOGIN=true +BACKEND_USER=:3000 +GRAPHPOLARIS_VERSION=dev SENTRY_ENABLED=false SENTRY_URL= -- GitLab