TODO: Move this to dev.to/bmitchinson
How to deploy an existing CRA app online in less than 60 seconds using your google account. Aftewards, custom domains can be applied through firebase.
-
npm i -g firebase-tools
-
firebase login
- Login to your google account using the browser
-
firebase init
-
(arrow down to hosting, space to select hosting circle, enter to continue)
-
"Create a new project"
-
Enter a project id Ex "hot-and-cold-bmitchinson"
-
Project Name (Just press enter to reuse your project id)
-
"What would you like to use as your public dir" -> Enter
build
-
"Configure as a SPA?" -> Yes (
y
) -
npm run build
-
firebase deploy
Done!