Skip to content

Instantly share code, notes, and snippets.

View pramendra's full-sized avatar
💭
🤓

Pramendra Gupta pramendra

💭
🤓
View GitHub Profile
@syuji-higa
syuji-higa / create-google-cloud-build-and-run-nextjs.sh
Last active January 3, 2023 00:54
Create a CI/CD environment for Next.js in Google Cloud Build & Run
gcloud alpha billing accounts list
echo "> Please select the billing account ID from the displayed and enter."
read GC_ACCOUNT_ID
echo "> Please enter a common project name for GitHub and GCP."
read PROJECT_NAME
echo "> Enter Cloud Run Location. (Recommendation is 'asia-northeast1' region)"
read GC_REVISION

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.