From 48cb5babb912580856c1c4f2b083e3b367774383 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 15:00:04 -0500 Subject: [PATCH 1/7] Delete .env.example --- client/.env.example | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 client/.env.example diff --git a/client/.env.example b/client/.env.example deleted file mode 100644 index 8df4edb80..000000000 --- a/client/.env.example +++ /dev/null @@ -1,3 +0,0 @@ -REACT_APP_API_URL=https://latitude-game-api.herokuapp.com -#REACT_APP_API_URL=http://localhost:8000 -EXTEND_ESLINT = true \ No newline at end of file From e672b1c04d6f81f986d276a2bae94ee0f04f64c3 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 15:00:21 -0500 Subject: [PATCH 2/7] Remove .env from client .gitignore --- client/.gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/client/.gitignore b/client/.gitignore index 1d132147a..f2c421b2a 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -1,5 +1,4 @@ node_modules -.env build .DS_Store dist From 1ba5ed950b6c401f1379f919c082374f8663bec4 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 15:06:05 -0500 Subject: [PATCH 3/7] Remove .env from top level .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index d65344c10..bc67036a9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ # Dependencies node_modules -.env build .DS_Store .vscode/chrome From 6f2aff34e19dede0172e4fa5d0cc07d73ad3b1cc Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 15:06:23 -0500 Subject: [PATCH 4/7] Add .env to core gitignore --- core/.gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/.gitignore b/core/.gitignore index 693400c57..a2b879822 100644 --- a/core/.gitignore +++ b/core/.gitignore @@ -1,2 +1,3 @@ dist -src/plugins/areaPlugin/style.css.d.ts \ No newline at end of file +src/plugins/areaPlugin/style.css.d.ts +.env From 1297c7ce345bb4485984d1b9892cbc674234e381 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 15:06:41 -0500 Subject: [PATCH 5/7] Checkin client env to simplify setup due to lack of secrets --- client/.env | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 client/.env diff --git a/client/.env b/client/.env new file mode 100644 index 000000000..d9cc8a9d6 --- /dev/null +++ b/client/.env @@ -0,0 +1,4 @@ +# REACT_APP_API_URL=https://api.latitude.io +# REACT_APP_API_URL=https://latitude-api-staging.herokuapp.com + REACT_APP_API_URL=http://localhost:8000 +EXTEND_ESLINT = true From 34323be4d8b8f63c3c3e286d218414b930099ece Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 16:08:21 -0500 Subject: [PATCH 6/7] Add env example to core --- core/.env.example | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 core/.env.example diff --git a/core/.env.example b/core/.env.example new file mode 100644 index 000000000..f12521059 --- /dev/null +++ b/core/.env.example @@ -0,0 +1,4 @@ +# REACT_APP_API_URL=https://latitude-api-staging.herokuapp.com +# REACT_APP_API_URL=https://api.latitude.io +REACT_APP_API_URL=http://localhost:8000 +EXTEND_ESLINT = true \ No newline at end of file From 8f9376b1785f0d294d20d78dff40213baf48e59d Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Wed, 8 Dec 2021 16:41:05 -0500 Subject: [PATCH 7/7] Specify Client Setup and Add Core Setup --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c81bc6c4..a8d889377 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Thoth is a multishot system builder. It leverages a visual coding style interface to allows game designers and developers to rapidly create powerful natural language systems and prototype games. -## Setup +## Client Setup 1. Generate a [Personal Access Token](https://github.com/settings/tokens) on Github which will allow you to install private latitude packages. Make sure you check the `write:packages` option. (`read:packages` will suffice as well if you aren't planning on publishing new versions of @latitudegames/thoth-core) 1. In your `~/.bashrc`, append the line `export NPM_TOKEN=YourTokenGoesHere`, and restart your terminal (you can run `source ~/.bashrc` to do so) @@ -11,6 +11,11 @@ Thoth is a multishot system builder. It leverages a visual coding style interfac 1. Run `yarn install` to install project dependencies 1. Run `yarn start` to start the @thoth/client app +## Core Local Setup + +1. Core the contents of `core/.env.example` to `core/.env` +1. Step 2 in Monorepo Development Setup + ## Monorepo Development Within the yarn workspace we need to be mindful of which version of the shared package @latitudegames/thoth-core we are including in our local development setup and our deploys to Netlify.