Scratch-Client-4 / client

🖥 The SC4 desktop client. Devlopement currently halted while we work on our mobile client : https://github.com/Scratch-Client-4/mobile
GNU General Public License v3.0
11 stars 1 forks source link

Url? #3

Closed retronbv closed 4 years ago

retronbv commented 4 years ago

What is the url to the client?

Thx, Yoyitsm3m8

locness3 commented 4 years ago

The client doesn't seem to be hosted somewhere yet. If you'd like to build it for testing, you'll need to install git and node+npm. Then, from a command prompt/terminal, run :

npm install
npm install http-server
npx sass scss/index.scss dist/index.css

Then edit this part of the index.html file :

<head>
  <meta charset="utf-8">
  <title>SC4 | Home</title>
  <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_o5hd5vvqpoqiwwmi.css">
  <link rel="stylesheet" href="/scss/index.scss">
</head>

to :

<head>
  <meta charset="utf-8">
  <title>SC4 | Home</title>
  <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_o5hd5vvqpoqiwwmi.css">
  <link rel="stylesheet" href="dist/index.css">
</head>

And finally, run:

npx http-server

Point at the URL shown and you'll have the frontend working. Good luck 😅

retronbv commented 4 years ago

Ok............ that might take me a bit bc I run Linux on my chromebook!

locness3 commented 4 years ago

Alternatively, you could try setting all of this up via Netlify or a CodeAnywhere Container.

retronbv commented 4 years ago

Ok. I’ll try that. XD

retronbv commented 4 years ago

With netifly it doesn’t look like the css works...

https://mystifying-mestorf-cd5a24.netlify.com/

locness3 commented 4 years ago

Yeah, you have to tell netlify to run the npx sass command in my comment, and make sure that the HTML file points to dist/index.css. I recommand doing a fork to edit the HTML, and deploying that fork to netlify. To tell it to run the command, set Build command in the netlify settings to it.

retronbv commented 4 years ago

Ok

micahlt commented 4 years ago

@YOYITsM3M8 @locness3 We've actually seen that Parcel works best. Instead, navigate into the repository's top directory and run this:

npm install -g parcel
parcel index.html
locness3 commented 4 years ago

Yeah, I know, I didn't know you were using parcel at time of writing.

micahlt commented 4 years ago

@locness3 No prob :D

micahlt commented 4 years ago

@YOYITsM3M8 We finally deployed the alpha of the client online; you can find it at https://scratch-client-4.web.app/

locness3 commented 4 years ago

I would say pre-pre-alpha tho

retronbv commented 4 years ago

Ok