This is a simple file hosting app designed to run on a free tier of Netlify or Firebase.
Add some files to the public
directory to get started!
npm install
npm start
- Create a new project on Netlify
- Setup the netlify-cli:
npm install -g netlify-cli
- Run:
netlify login
- Run:
netlify link
- Select your new project.
- Build and deploy:
npm run build
netlify deploy --prod --dir dist
- Create a new project in the Firebase console
- Setup the firebase cli:
npm install -g firebase-tools
- Run:
firebase login
- 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
- Build and deploy:
npm run build
firebase deploy
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