Skip to content

Commit

Permalink
Default license MIT, note to check/update LICENSE file on SETUP.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Jan 26, 2024
1 parent ef9a7bf commit 8e8b19c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 236 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 E-Com Club Softwares para E-commerce <ti@e-com.club>

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.
230 changes: 0 additions & 230 deletions LICENSE.md

This file was deleted.

7 changes: 5 additions & 2 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ npm i
FIREBASE_PROJECT_ID={project-id} npm run setup
```

> **Note**
> [!NOTE]
> Account key created automatically with only required permissions using gcloud CLI (skip steps 6 and 7).
</details>
Expand Down Expand Up @@ -100,7 +100,7 @@ npm run deploy

#### Browser-only setup

> **Warning**
> [!WARNING]
> This configuration option is less secure, we recommend [first deploy on CLI](#first-deploy-on-cli) instead.
7. [Create a service account](https://console.cloud.google.com/iam-admin/serviceaccounts) for your Firebase project directly on Google Cloud Platform:
Expand All @@ -127,3 +127,6 @@ Firebase Hosting CDN is fast, but [doesn't support cache _Stale-While-Revalidate
- [_Cache Reserve_](https://www.cloudflare.com/products/cache-reserve/) with Tiered Cache;
- DNS **proxied** A entry pointing to your Firebase Hosting IP;
- Worker _swr_ script with source (_quick edit_) copied from [`cloud-commerce/packages/ssr/cloudflare/swr-worker.js`](https://raw.githubusercontent.com/ecomplus/cloud-commerce/main/packages/ssr/cloudflare/swr-worker.js).

> [!NOTE]
> You may want to remove or edit the default LICENSE file before publishing your store content.
7 changes: 5 additions & 2 deletions SETUP.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ npm i
FIREBASE_PROJECT_ID={project-id} npm run setup
```

> **Note**
> [!NOTE]
> Chave de conta criada automaticamente apenas com as permissões necessárias usando gcloud CLI (pule as etapas 6 e 7).
</details>
Expand Down Expand Up @@ -100,7 +100,7 @@ npm run deploy

#### Setup somente do navegador

> **Warning**
> [!WARNING]
> Essa opção de configuração é menos segura, recomendamos o [primeiro deploy em CLI](#primeiro-deploy-em-cli).
7. [Crie uma conta de serviço](https://console.cloud.google.com/iam-admin/serviceaccounts) para seu projeto do Firebase diretamente no Google Cloud Platform:
Expand All @@ -127,3 +127,6 @@ O CDN do Firebase Hosting é rápido, mas [não suporta _Stale-While-Revalidate_
- [_Cache Reserve_](https://www.cloudflare.com/products/cache-reserve/) com Tiered Cache;
- Entrada A no DNS com **proxy ativo** apontando para o IP do seu projeto no Firebase Hosting;
- Worker _swr_ com o código (_quick edit_) copiado de [`cloud-commerce/packages/ssr/cloudflare/swr-worker.js`](https://raw.githubusercontent.com/ecomplus/cloud-commerce/main/packages/ssr/cloudflare/swr-worker.js).

> [!NOTE]
> Você pode querer remover ou editar a licença padrão (arquivo LICENSE) antes de publicar o conteúdo da sua loja.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"functions/!(ssr)/**/*.ts": "eslint --fix"
},
"main": "functions/index.js",
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
"license": "Apache 2.0 with Commons Clause",
"bugs": {
"url": "https://github.com/ecomplus/cloud-commerce/issues"
},
Expand Down

0 comments on commit 8e8b19c

Please # to comment.