-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Use dope.sh to generate a testable app from production template
#530
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
base: main
Are you sure you want to change the base?
Changes from all commits
ec70f80
94b49f0
1e2aac5
c3f1a7b
6490564
60a77ef
a071ed8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| app/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Template Testing | ||
|
|
||
| Tests the production version of the Open SaaS template that users get from `wasp new app -t saas`. | ||
|
|
||
| **Why this exists:** As a part of our release checklist, we want to test that the production version of the Open SaaS template works. | ||
|
|
||
| **How it works:** We create a new Wasp app from the production Open SaaS template, and then modify the app to be production-ready (e.g. replace `Dummy` email service with `SMTP`, add Dotenv Vault with real credentials, etc.). | ||
|
|
||
| ## Testing a new Wasp release | ||
|
|
||
| When testing a new Wasp release: | ||
|
|
||
| ```bash | ||
| cd template-test | ||
| # Create a new Wasp app and apply our patches to it. | ||
| ./tools/patch.sh | ||
|
|
||
| cd app | ||
|
|
||
| # Get the environment variables from Dotenv Vault. | ||
| npm run env:pull | ||
|
|
||
| # Test that the app works in dev and prod modes. | ||
| npx @wasp.sh/wasp-app-runner dev | ||
| npx @wasp.sh/wasp-app-runner build | ||
| ``` | ||
|
|
||
| ### If you want to update the template test app | ||
|
|
||
| - Generate `app/` from template and diffs: `./tools/patch.sh` | ||
| - Modify the app in `app/` as needed and then update diffs: `./tools/diff.sh` | ||
|
|
||
| For detailed information about the diff/patch workflow and MacOS setup requirements, see [../tools/README.md](../tools/README.md). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- /Users/ilakovac/dev/open-saas/template-test/tools/../../template-test/base-app/app/.env.vault | ||
| +++ template-test/app/.env.vault | ||
| @@ -0,0 +1,25 @@ | ||
| +#/-------------------.env.vault---------------------/ | ||
| +#/ cloud-agnostic vaulting standard / | ||
| +#/ [how it works](https://dotenv.org/env-vault) / | ||
| +#/--------------------------------------------------/ | ||
| + | ||
| +# development | ||
| +DOTENV_VAULT_DEVELOPMENT="XBRn4Vwc8LtdF+cMKz+KtNYrJb5KInQhWt6bGovqQwqHzCef1U620BBr0JtJGsf1LLlyH5yg3LjEGOPbIZ1ClIzOTn5n3JbiD3UP8Wurxx1iVc+UTYQKg1EtGGVrQPB1nnXrP39S8LnjZQf2z400XHKhBtKP0cjWEaTm7fIxBdRWvWBH3lUlW1KeDHdPx7iiTAoZyiI2HyUhp7iTpBn7qiKqc59rDaD2ewJMBBi7MNF07xmIyIECmOHvN3hWCizqHGfwdriWoPb5zB73ifXrM60ZqK7ToCbzKCn1uqc91GovNkWX+C8m2cu5szYIYvPVK3A4p/VA0+gSeSMLmdA2oTPln14K+/X2L2kXU8UHWg5dSOagpCZHZ+s07Rpe+wOyjxnFRHf2sY284WlMPNyLil5IA8gj72mNjvD5o7rjnwKjCh/z6auE1SWpM9mwlBJzMGQ9xwS8LRxafGmI/NumlM+kTb7jHjbTWq+pC6CKyJjG/ioZkEFkXvWeEyUt+wKTs1RkqFFC2PQuhuqP8tE7mSGPPX5u8IPSdr9KdwUfZO7RgTnlh7N/dPLg0T+xuWWUfFKvgppgLbLJrfQGOd4Sq7NqchU7BJjeclTttiIQYDexJIjmQXz4GkV/oWZ5pZzE2qvE5bjEkotypPXL9bmKtbXR82G0FJ4wv9toOTdNQhs/GiyRMxwv+u1S+vSJ8QlRZPb7vSVWSEm9rA8+k/vEoa4wHXG2Nu118EjmolF+e7B26wi5JHaImzS5iXzIpKMl6R/pHFQrkJ6VV7ImmtJf648eMB0p2IW4bHfP7D5j5VvxwzGIqayUfI+RFBcAVkgcc2EM+YTmjDghigxB/IcGq606f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ULT_PRODUCTION_VERSION=2 | ||
| + | ||
| +#/----------------settings/metadata-----------------/ | ||
| +DOTENV_VAULT="vlt_57f67ae090fbd4c01066b1af1342a8ba518da1296c6595b9fcd233af37a5fce4" | ||
| +DOTENV_API_URL="https://vault.dotenv.org" | ||
| +DOTENV_CLI="npx dotenv-vault@latest" |
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this file have diffs. I'd expect it to be the same (apart maybe from
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We had this problem in different example apps - this is what Dotenv Vault automatically adds each time when you run So if you are testing something and decide to modify the app e.g. you found some tweak that would help and run So I decided to keep them in - they don't any harm and make the process less annoying. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, fair enough, but can you put in a comment that explains this in the gitignore (basically what you said here). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a comment 👍 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- /Users/ilakovac/dev/open-saas/template-test/tools/../../template-test/base-app/app/.gitignore | ||
| +++ template-test/app/.gitignore | ||
| @@ -6,6 +6,24 @@ | ||
| .env | ||
| .env.* | ||
|
|
||
| +# Dotenv Vault entries | ||
| +# These are automatically added by Dotenv Vault when running `npm run env:pull`. | ||
| +# They're kept in this diff to avoid having to manually revert .gitignore changes | ||
| +# each time we test modifications. They don't cause any harm and make the process | ||
| +# less annoying. | ||
| +.env* | ||
| +.flaskenv* | ||
| +!.env.project | ||
| +!.env.vault | ||
| + | ||
| # Don't ignore example dotenv files. | ||
| !.env.example | ||
| !.env.*.example | ||
| + | ||
| +# Ignore migrations dir to avoid including them in the diffs. We want to test | ||
| +# generating migrations each time. | ||
| +migrations/ | ||
| + | ||
| +# Ignore package-lock.json to avoid including it in the diffs. Our users start | ||
| +# new projects without it, and we want to test the template like our users. | ||
| +package-lock.json | ||
| \ No newline at end of file |
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to delete these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I did by accident - I was probably cleaning up stuff I thought we didn't need or something like that. I'll remove this 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correction - it looks like a bug with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might find this helpful: #523 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. False alarm, it looks the Dotenv Vault addition of I've asked Claude to explain with code: Explanation by ClaudeRoot Cause:
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- /Users/ilakovac/dev/open-saas/template-test/tools/../../template-test/base-app/app/main.wasp | ||
| +++ template-test/app/main.wasp | ||
| @@ -39,7 +39,7 @@ | ||
| email: { | ||
| fromField: { | ||
| name: "Open SaaS App", | ||
| - email: "[email protected]" | ||
| + email: "[email protected]" | ||
| }, | ||
| emailVerification: { | ||
| clientRoute: EmailVerificationRoute, | ||
| @@ -84,14 +84,11 @@ | ||
| }, | ||
|
|
||
| emailSender: { | ||
| - // NOTE: "Dummy" provider is just for local development purposes. | ||
| - // Make sure to check the server logs for the email confirmation url (it will not be sent to an address)! | ||
| - // Once you are ready for production, switch to e.g. "SendGrid" or "Mailgun" providers. Check out https://docs.opensaas.sh/guides/email-sending/ . | ||
| - provider: Dummy, | ||
| + provider: SMTP, | ||
| defaultFrom: { | ||
| name: "Open SaaS App", | ||
| // When using a real provider, e.g. SendGrid, you must use the same email address that you configured your account to send out emails with! | ||
| - email: "[email protected]" | ||
| + email: "[email protected]" | ||
| }, | ||
| }, | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- /Users/ilakovac/dev/open-saas/template-test/tools/../../template-test/base-app/app/package.json | ||
| +++ template-test/app/package.json | ||
| @@ -1,6 +1,10 @@ | ||
| { | ||
| "name": "opensaas", | ||
| "type": "module", | ||
| + "scripts": { | ||
| + "env:pull": "npx dotenv-vault@latest pull development .env.server", | ||
| + "env:push": "npx dotenv-vault@latest push development .env.server" | ||
| + }, | ||
| "dependencies": { | ||
| "@aws-sdk/client-s3": "^3.523.0", | ||
| "@aws-sdk/s3-presigned-post": "^3.750.0", |
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have a very similar thing in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are actually quite different:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -e | ||
|
|
||
| command -v wasp >/dev/null || { echo "Error: Wasp CLI not found"; exit 1; } | ||
|
|
||
| SCRIPT_DIR=$(dirname "$(realpath "$0")") | ||
| ROOT_DIR="${SCRIPT_DIR}/../.." | ||
| BASE_DIR="${ROOT_DIR}/template-test/base-app" | ||
|
|
||
| # Clean up the temporary base app directory on exit. | ||
| trap 'rm -rf "${BASE_DIR}"' EXIT | ||
|
|
||
| cd "${ROOT_DIR}" | ||
|
|
||
| rm -rf "${BASE_DIR}" | ||
| (cd "${ROOT_DIR}/template-test" && wasp new -t saas base-app) | ||
| (cd "${BASE_DIR}/app" && git init -b main -q && git add .) | ||
|
|
||
| rm -rf template-test/app_diff | ||
| "${ROOT_DIR}/tools/dope.sh" "${BASE_DIR}/app" template-test/app diff |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -e | ||
|
|
||
| command -v wasp >/dev/null || { echo "Error: Wasp CLI not found"; exit 1; } | ||
|
|
||
| SCRIPT_DIR=$(dirname "$(realpath "$0")") | ||
| ROOT_DIR="${SCRIPT_DIR}/../.." | ||
| BASE_DIR="${ROOT_DIR}/template-test/base-app" | ||
|
|
||
| # Clean up the temporary base app directory on exit. | ||
| trap 'rm -rf "${BASE_DIR}"' EXIT | ||
|
|
||
| cd "${ROOT_DIR}" | ||
|
|
||
| rm -rf "${BASE_DIR}" | ||
| (cd "${ROOT_DIR}/template-test" && wasp new -t saas base-app) | ||
| (cd "${BASE_DIR}/app" && git init -b main -q && git add .) | ||
|
|
||
| # Clean up existing derived app directory if it exists. | ||
| rm -rf template-test/app | ||
|
|
||
| "${ROOT_DIR}/tools/dope.sh" "${BASE_DIR}/app" template-test/app patch |

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should point the releaser to thsi from somwhere global (like the README.md or the release checklist).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linked to the README from the checklist https://www.notion.so/wasp-lang/0-X-Y-26818a74854c8094b1fdf42b3e9d25b8?source=copy_link#26818a74854c80439e0ae8bdd709b4d6