Skip to content

Commit d1fa9e6

Browse files
committed
Solved comments
1 parent 825831b commit d1fa9e6

9 files changed

Lines changed: 78 additions & 622 deletions

File tree

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,12 @@ React Firebase Admin is our in-house admin dashboard boilerplate, used in many o
139139
### Cloud functions
140140

141141
- [Express](https://github.com/expressjs/express) (★ 47.5k) fast, unopinionated, minimalist web framework for node.
142-
- [Cors](https://github.com/expressjs/cors) (★ 4.4k) Node.js CORS middleware.
143-
- [Nodemailer](https://github.com/nodemailer/nodemailer) (★ 12.2k) send e-mails with Node.js.
144142
- [Firebase-admin](https://github.com/firebase/firebase-admin-node) (★ 790) Firebase Admin Node.js SDK.
145143
- [Firebase-functions](https://github.com/firebase/firebase-functions) (★ 658) Firebase SDK for Cloud Functions.
146144
- [@google-cloud/storage](https://github.com/googleapis/nodejs-storage) (★ 421) Node.js client for Google Cloud Storage.
147145
- [Firebase-function-tools](https://github.com/TarikHuber/react-most-wanted) (★ 780) a tool for naming and loading our Cloud Functions.
148146
- [Cookie-parser](https://github.com/expressjs/cookie-parser) (★ 1.4k) parse HTTP request cookies.
149147
- [Uuid](https://github.com/uuidjs/uuid) (★ 8.7k) generate RFC-compliant UUIDs in JavaScript.
150-
- [Busboy](https://github.com/mscdex/busboy) (★ 1.8k) a streaming parser for HTML form data for Node.js.
151-
- [Sharp](https://github.com/lovell/sharp) (★ 15.8k) high performance Node.js image processing.
152-
- [Glob](https://github.com/isaacs/node-glob) (★ 6.2k) glob functionality for Node.js.
153148
- [Fs-extra](https://github.com/jprichardson/node-fs-extra) (★ 6.6k) Node.js: extra methods for the fs object like copy(), remove(), mkdirs().
154149
- [Resize Image](https://github.com/firebase/extensions/tree/master/storage-resize-images) (★ 372) Firebase Extension to create resized versions of images uploaded to Cloud Storage.
155150

@@ -579,7 +574,7 @@ const date = Date.now();
579574
580575
## File Upload
581576
582-
For file upload, we used the [Firebase Client](https://firebase.google.com/docs/storage/web/upload-files?authuser=1#upload_files) together with **Firebase Storage**. We store the users profile image in a subfolder named `/users`.
577+
For file upload, we used the [Firebase Client](https://firebase.google.com/docs/storage/web/upload-files?authuser=1#upload_files) together with **Firebase Storage** for our storage needs. We store the users profile image in a subfolder named `/users`.
583578
584579
### Image Resize
585580
@@ -588,6 +583,14 @@ Every image uploaded to the storage is resized to our size preference (`200px x
588583
589584
**Setting your image resize**
590585
586+
If you want to install it from the cmd, you can execute:
587+
588+
```javascript
589+
firebase ext:install storage-resize-images --project=projectId
590+
```
591+
592+
Wih your own `projectId`
593+
591594
<ol>
592595
<li>Go to your Firebase Proyect on <a href= "https://console.firebase.google.com/u/1/">Firebase Console</a> </li>
593596
<li>Select extensions from the sidebar</li>
@@ -597,6 +600,8 @@ Every image uploaded to the storage is resized to our size preference (`200px x
597600
<li>Click on install extension</li>
598601
</ol>
599602
603+
In case you do not want to upload a resized version and upload the original file, you should avoid step **5**.
604+
600605
### Storage Rules
601606
602607
To make images reachable, we needed to set our storage rules to allow users to `write` on the storage made for the user logo, only if they are authenticated, but they can always `read`, this was set for saving the user´s logo path on the database.

0 commit comments

Comments
 (0)