Handling of files
https://casino-files.firebaseapp.com/
This app is deliberately kept as small as possible without too many big frameworks and the like.
git clone https://github.com/jnfaerch/casino.gitcd casinonpm install
You need Firebase https://firebase.google.com Hosting, Storage, Cloud Firestore database and Authentication.
The files ‘storage.rules’ and ‘firestore.rules’ are in this repository just to aid you in:
Google has no API to iterate over the files in storage so you need to place file information in the database (Firestore) and use this for iteration.
.firebaserc with your informationInitialize Firebase script in the index.html file (this is public information useless without backend access to the Firebase instance)$firebase serve$firebase deploy in terminal to setup on your Firebase instanceChanges to files and information has to be handled via the Firebase GUI.
Remember if you delete a file in the Storage you have to delete the corresponding database ‘document’.
The icons are from FontAwesome https://fontawesome.com/start
You can easily change icons, fonts, colors and hero image to your own choices.
Color: Just change the CSS --main-color to the color of choice.
I have not been able to make things work with Yarn so NPM is used according to Googles documentation.
Also see the gitignore file as there’s a lot of stuff you don’t necessarily want in your Git repo.
The app is for businesses or persons who need secure upload and public download of files.
Feel free to use and alter to your heart’s content - Credit me if you want to but you don’t have to :)