From 09690bc3aa780f05d426ad4291713f218adc6a79 Mon Sep 17 00:00:00 2001 From: Ibrahim H Date: Thu, 19 Aug 2021 17:45:34 +0100 Subject: [PATCH 1/3] Create .gitpod.yml --- .gitpod.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..681421f --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,15 @@ +ports: + - port: 3001 + onOpen: open-preview + - port: 3000 + onOpen: ignore + +tasks: + - name: json + init: npm i && gp sync-done bundle + command: | + npm i -g json-server && json-server --watch db.json --port 3000 --no-cors + npm run generate + - name: nuxt + init: gp sync-await bundle + command: npm run dev From 142f4a301a0bd73bc590c7c85bd979925cc2d82b Mon Sep 17 00:00:00 2001 From: Ibrahim H Date: Thu, 19 Aug 2021 17:47:50 +0100 Subject: [PATCH 2/3] Add badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 35f4678..811a562 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # 🛍 Ecommerce Store with Netlify Functions and Stripe +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) + > A serverless function to process stripe payments with Nuxt, Netlify, and Lambda Demo site is here: [E-Commerce Store](https://ecommerce-netlify.netlify.com/) From f882420378b9ae5a3b9bb99e22219fecae14411e Mon Sep 17 00:00:00 2001 From: bitsnaps Date: Thu, 19 Aug 2021 16:57:28 +0000 Subject: [PATCH 3/3] gitpod: update run --- .gitignore | 5 ++++- .gitpod.yml | 14 +++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 7ed4ad0..44de14c 100644 --- a/.gitignore +++ b/.gitignore @@ -85,4 +85,7 @@ dist sw.* # Mac OSX -.DS_Store \ No newline at end of file +.DS_Store + +# packages lock +package-lock.json \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 681421f..5c66724 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,15 +1,15 @@ ports: - - port: 3001 - onOpen: open-preview - port: 3000 - onOpen: ignore + onOpen: open-preview +# - port: 3001 +# onOpen: ignore tasks: - name: json - init: npm i && gp sync-done bundle - command: | - npm i -g json-server && json-server --watch db.json --port 3000 --no-cors - npm run generate + init: | + npm install -g npm + npm i && gp sync-done bundle + command: npm run generate - name: nuxt init: gp sync-await bundle command: npm run dev