Skip to content

Marktawa/strapi-cloud-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Strapi on Google Cloud Shell

This repo serves as a code container for the tutorial written on Hashnode.

Prerequisites

  • Google Account
  • Any Chromium-based browser
  • Ngrok Account

Getting Started

git clone https://github.com/Marktawa/strapi-cloud-shell
  • Open the project directory:
cd strapi-cloud-shell

Strapi Setup

  • Change directory to Strapi project folder.
cd backend
  • Install dependencies.
npm install
  • Build Strapi app.
npm run build
  • Run Strapi app.
npm run develop

Ngrok Setup

  • 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

Authors

Extra

About

Run Strapi on Google Cloud Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published