This repo serves as a code container for the tutorial written on Hashnode.
- Google Account
- Any Chromium-based browser
- Ngrok Account
- Navigate to Google Cloud Shell
- In the Cloud Shell Terminal, clone the repo:
git clone https://github.com/Marktawa/strapi-cloud-shell
- Open the project directory:
cd strapi-cloud-shell
- Change directory to Strapi project folder.
cd backend
- Install dependencies.
npm install
- Build Strapi app.
npm run build
- Run Strapi app.
npm run develop
- In new Google Cloud Shell terminal tab, change directory to root project folder.
cd strapi-cloud-shell
- Add
ngrok
to the instance's path.
sudo cp ngrok /usr/local/bin
- Add your Ngrok authtoken.
ngrok config add-authtoken <Authtoken>
NOTE: Replace with your specific ngrok account Authtoken
- Run ngrok to listen on Strapi app's port.
ngrok http 1337
- You are welcome to make issues and feature requests.