Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
📝 Example Redwood app
Browse files Browse the repository at this point in the history
  • Loading branch information
Errorname committed Aug 16, 2020
1 parent 2d019df commit c65dab2
Show file tree
Hide file tree
Showing 111 changed files with 16,360 additions and 122 deletions.
2 changes: 1 addition & 1 deletion docs/examples/apollo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Apollo Example for Prisma-multi-tenant
# Apollo example for Prisma-multi-tenant

This is an example project to run Apollo with multi-tenancy using Prisma-multi-tenant. (See also the tutorial "[Adding multi-tenancy to your Apollo app](/docs/integrations/Apollo.md)")

Expand Down
16 changes: 8 additions & 8 deletions docs/examples/apollo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/examples/apollo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apollo",
"version": "2.3.0",
"version": "2.3.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@prisma-multi-tenant/client": "^2.3.0",
"@prisma-multi-tenant/client": "^2.3.1",
"apollo-server": "^2.16.0",
"graphql": "^15.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic-js/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Basic Example (JS) for Prisma-multi-tenant
# Basic example (JS) for Prisma-multi-tenant

This is an example project written in JavaScript to run Prisma and Prisma-multi-tenant.

Expand Down
16 changes: 8 additions & 8 deletions docs/examples/basic-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/examples/basic-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-js",
"version": "2.3.0",
"version": "2.3.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"license": "ISC",
"dependencies": {
"@prisma/client": "^2.4.1",
"@prisma-multi-tenant/client": "^2.3.0"
"@prisma-multi-tenant/client": "^2.3.1"
},
"devDependencies": {
"@prisma/cli": "^2.4.1"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic-ts/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Basic Example (TS) for Prisma-multi-tenant
# Basic example (TS) for Prisma-multi-tenant

This is an example project written in TypeScript to run Prisma and Prisma-multi-tenant.

Expand Down
16 changes: 8 additions & 8 deletions docs/examples/basic-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/examples/basic-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "basic-js",
"version": "2.3.0",
"version": "2.3.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"license": "ISC",
"dependencies": {
"@prisma/client": "^2.4.1",
"@prisma-multi-tenant/client": "^2.3.0"
"@prisma-multi-tenant/client": "^2.3.1"
},
"devDependencies": {
"@prisma/cli": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/blitz/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Blitz Example for Prisma-multi-tenant
# Blitz example for Prisma-multi-tenant

TODO
2 changes: 1 addition & 1 deletion docs/examples/express/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Express Example for Prisma-multi-tenant
# Express example for Prisma-multi-tenant

This is an example project to run Express with multi-tenancy using Prisma-multi-tenant. (See also the tutorial "[Adding multi-tenancy to your Express app](/docs/integrations/Express.md)")

Expand Down
16 changes: 8 additions & 8 deletions docs/examples/express/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/examples/express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express",
"version": "2.3.0",
"version": "2.3.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@prisma-multi-tenant/client": "^2.3.0",
"@prisma-multi-tenant/client": "^2.3.1",
"express": "^4.17.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/nexus/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Nexus Example for Prisma-multi-tenant
# Nexus example for Prisma-multi-tenant

This is an example project to run Nexus with the Prisma-multi-tenant plugin. (See also the tutorial "[Adding multi-tenancy to your Nexus app](/docs/integrations/Nexus.md)")

Expand Down
24 changes: 12 additions & 12 deletions docs/examples/nexus/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/examples/nexus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nexus-tutorial",
"version": "2.3.0",
"version": "2.3.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -11,8 +11,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@prisma-multi-tenant/client": "^2.3.0",
"@prisma-multi-tenant/nexus": "^2.3.0",
"@prisma-multi-tenant/client": "^2.3.1",
"@prisma-multi-tenant/nexus": "^2.3.1",
"@prisma/cli": "^2.2.2",
"nexus": "^0.26.0-next.5",
"nexus-plugin-prisma": "^0.16.2-next.4"
Expand Down
10 changes: 10 additions & 0 deletions docs/examples/redwood/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
15 changes: 15 additions & 0 deletions docs/examples/redwood/.env.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# These environment variables will be used by default if you do not create any
# yourself in .env. This file should be safe to check into your version control
# system. Any custom values should go in .env and .env should *not* be checked
# into version control.

# schema.prisma defaults
DATABASE_URL=file:./dev.db

# disables Prisma CLI update notifier
PRISMA_HIDE_UPDATE_MESSAGE=true


# The following env variable is used by prisma-multi-tenant

MANAGEMENT_URL=file:prisma/management.db
2 changes: 2 additions & 0 deletions docs/examples/redwood/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DATABASE_URL=file:./dev.db
# BINARY_TARGET=native
10 changes: 10 additions & 0 deletions docs/examples/redwood/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea
.DS_Store
.env
.netlify
dev.db
dist
dist-babel
node_modules
yarn-error.log
web/public/mockServiceWorker.js
1 change: 1 addition & 0 deletions docs/examples/redwood/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
13 changes: 13 additions & 0 deletions docs/examples/redwood/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"ofhumanbondage.react-proptypes-intellisense",
"mgmcdermott.vscode-language-babel",
"wix.vscode-import-cost",
"pflannery.vscode-versionlens",
"editorconfig.editorconfig",
"prisma.prisma"
],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions docs/examples/redwood/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[prisma]": {
"editor.formatOnSave": true
}
}
21 changes: 21 additions & 0 deletions docs/examples/redwood/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Redwood

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit c65dab2

Please sign in to comment.