/Scribbler

A websockets demo hosted on cloud run

Primary LanguageSvelteGNU General Public License v3.0GPL-3.0

Svelte + Cloud Run WebSockets

drawing

A clone of PWA Starter Template

...with all the good stuff

Setting Up

  1. Clone this repo

git clone https://github.com/devlucem/scribbler.git 2. Install All Dependencies

npm install && cd cloud && npm install && cd .. 3. Once you build the frontend and prepare the files for deployment, you can run locally with node .. Alternatively, change the Server Index port to one that is not in use and listen to it in the svelte application


Deploying to Cloud Run

  1. Build the web app in Home Folder

npm run build

  1. Prepare files for deployment in Cloud Folder
robocopy docs cloud/docs
cd cloud
  1. Upload Cloud

gcloud run deploy service --allow-unauthenticated --source=.

A run.app access URL will be generated for you.

Made With ♥

(                   (                            
)\ )                )\ )                         
(()/(     (    )    (()/(   (          (     )    
/(_))   ))\  /((    /(_)) ))\   (    ))\   (     
(_))_   /((_)(_))\  (_))  /((_)  )\  /((_)  )\  '
|   \ (_))  _)((_) | |  (_))(  ((_)(_))  _((_))  
| |) |/ -_) \ V /  | |__| || |/ _| / -_)| '  \()
|___/ \___|  \_/   |____|\_,_|\__| \___||_|_|_|