My Experience using Hugo and Firebase Hosting with Termux on Android

Edit - Read about Google Play version of Termux

https://wiki.termux.com/wiki/Termux_Google_Play


First thing I did was install Termux from Play Store

https://play.google.com/store/apps/details?id=com.termux


Next I installed nodejs which I had done before and documented here on this blog

https://trinbagotechie.blogspot.com/2020/04/experience-termux-nodejs-android.html


Next thing I did was install firebase-tools under Termux

npm install -g firebase-tools


Follow the steps from official Firebase documentation to create a new project

https://firebase.google.com/docs/hosting/quickstart


I got the following error - Failed to create project because there is already a project with ID. I was using web-test. Id must be unique globally across all users of firebase. Finally I was able to create a project, modify the index.html and deploy. This is the result.

https://trinbagotechie-web-test.web.app


This was simple enough so I decided to make it interesting by creating a hugo project

apt install hugo


Follow hugo getting started guide

https://gohugo.io/getting-started/quick-start/


Remember to modify baseURL in config.toml and this was my result.

https://trinbagotechie-hugo-test.web.app

Comments

Popular posts from this blog

My Experience Setting Up FLOW's TG2492LG-FLO WIFI Modem

My interview with Minister Hassel Bacchus

You can sign up for Elon Musks Space X Star Link Satellite Internet from Trinidad and Tobago