Basic social media app (twitter clone), to try out:
- react
- firebase
- javascript
Nix is being used, so just enter a nix shell:
nix-shell
Then install packages with:
[nix-shell] npm install
- run:
firebase init
- choose:
- store
- functions
- hosting
- login:
npx firebase login
- serve: runs the app locally
- deploy: deploys the cloud functions to firebase
- nodejs: back-end language
- busyboy: package to help with image uploads
- nixpkgs: to real with the dependencies and set-up dev environment
- firebase: it's the back-end
- express: to group http endpoints and make them more configurable
- by default firebase's endpoints are hard to customize
- run:
firebase init
- mark: firestore, functions
- run:
firebase deploy
- ReactJs: front-end library
- Redux: application state manager
- run:
shoutout-client $ npm run build
- run:
firebase init hosting
- public directory:
shoutout-client/build
- single-page app:
yes
- incex.html exists, overwrite?:
no
- public directory:
- run:
firebase deploy --only hosting
- Place them in an .env file
- Your credentials can be found in the firebase dashboard > project settings