Skip to content
/ files Public

This is a simple file hosting app designed to run on a free tier of Netlify or Firebase.

License

Notifications You must be signed in to change notification settings

macuyler/files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files

This is a simple file hosting app designed to run on a free tier of Netlify or Firebase.

Quick Start

Add some files to the public directory to get started!

npm install
npm start

Netlify Deploy

  1. Create a new project on Netlify
  2. Setup the netlify-cli:
npm install -g netlify-cli
  1. Run: netlify login
  2. Run: netlify link
    • Select your new project.
  3. Build and deploy:
npm run build
netlify deploy --prod --dir dist

Firebase Deploy

  1. Create a new project in the Firebase console
  2. Setup the firebase cli:
npm install -g firebase-tools
  1. Run: firebase login
  2. Run: firebase init
    • Select your firebase project
    • Enable firebase hosting
    • Handle the prompts below:

? What do you want to use as your public directory? dist

? Configure as a single-page app (rewrite all urls to /index.html)? (y/N) No

? File dist/404.html already exists. Overwrite? (y/N) No

? File dist/index.html already exists. Overwrite? (y/N) No

  1. Build and deploy:
npm run build
firebase deploy

Misc.

To ignore changes to public/hello.txt and src/map.js

git update-index --skip-worktree public/hello.txt
git update-index --skip-worktree src/map.js

About

This is a simple file hosting app designed to run on a free tier of Netlify or Firebase.

Topics

Resources

License

Stars

Watchers

Forks