prototypo icon indicating copy to clipboard operation
prototypo copied to clipboard

How to get the app to run locally?

Open Connum opened this issue 5 years ago • 17 comments
trafficstars

Hi there,

I just stumbled upon this project. I understand that the app does no longer exist as a service and you open-sourced it. Now I'm trying to get it to run locally. After some issues getting it to run at all (had to use node 11 and add

  "resolutions": {
    "@babel/preset-env": "7.5.5"
  }

to package.json), webpack succesfully bundles up everything and makes it available at http://localhost:9000/webpack-dev-server/index.html

However, all I see after the loader is "Prototypo is no more", so exactly the same as https://app.prototypo.io/. I had expected to be able to run the app locally without any sign-in etc., but I was obviously wrong. How can we run the app locally?

Connum avatar Jul 13 '20 15:07 Connum

Hello, you can actually revert the last commit to retrieve the signin/signup views. But since we used Graphcool for our backend, I'm not sure what will happen next. GraphCool shut down a few days ago and is now Prisma, but we haven't migrated the service because of the Prototypo company shutdown.

yannickmathey avatar Jul 14 '20 14:07 yannickmathey

Thanks for getting back so quickly! Do you have any plans to adapt the code to make the app standalone, or is that something you'd leave for contributors to do if there's any interest? I tried to make it work yesterday, but it was a bit too entangled with API requests to the backend to make it work within the time that I had to play around, so this seems like a more extensive task.

Connum avatar Jul 14 '20 16:07 Connum

Unfortunately no, because no one from the former team is working on this project anymore. It's a substantial task indeed to migrate from GraphCool to Prisma but any help is welcome if there is any interest. The first step might be to bypass the authentification when opening the app: the backend issue may be smaller than expected.

yannickmathey avatar Jul 15 '20 08:07 yannickmathey

If you're not after the latest version, you can check out the feat/offline_prototypo branch (#349). Still works for me!

TeisD avatar Sep 22 '20 11:09 TeisD

@TeisD I am trying to use the branch you suggested but I get Unhandled rejection ReferenceError: localClient is not defined when trying to create a font family. Did you have the same issue?

He1nr1chK avatar Oct 25 '20 14:10 He1nr1chK

@He1nr1chK Try running the app normally with npm run start the first time. This will open the sign in page and create a _hoodie_config object in localStorage in the background. From there on I could run the app with npm run offline.

TeisD avatar Oct 27 '20 11:10 TeisD

@TeisD thanks a lot! Works perfectly

He1nr1chK avatar Oct 27 '20 16:10 He1nr1chK

Hello, you can actually revert the last commit to retrieve the signin/signup views. But since we used Graphcool for our backend, I'm not sure what will happen next. GraphCool shut down a few days ago and is now Prisma, but we haven't migrated the service because of the Prototypo company shutdown.

Sad about the Shutdown 😢 Funny that I now work at Prisma, I didn't know you were using GraphCool 😃

Jolg42 avatar Feb 16 '21 08:02 Jolg42

Hello there, Is is possible to run on Windows OS ? Have installed pre requirements Git , node >= 4 with npm >= 3 or yarn but i cant start it with yarn. mby i have to download not master branch and need another for windows ? Thanks

paraampampampam avatar Mar 19 '21 06:03 paraampampampam

@paraampampampam see above https://github.com/byte-foundry/prototypo/issues/767#issuecomment-696651203

yannickmathey avatar Mar 19 '21 08:03 yannickmathey

Aw man I realize it might be hopeless since some pieces are deprecated but here goes. I'm attempting to use the offline branch mentioned above. I followed the readme instructions as best as possible. I set the right version of Node and npm and its able to install but when I runnpm start it fails immediately at gulp serve. I tried to set up the hoodie (whose links no longer work), I did npm install hoodie bc I couldn't find any other installation info for it. But hoodie new prototypo-hoodie fails and says the command can't be found.

If anyone has any suggestions please let me know 🙏

samchop avatar Sep 24 '21 20:09 samchop

From what I understand, Hoodie is just the name of the class here https://github.com/byte-foundry/prototypo/blob/master/app/scripts/services/hoodie.services.js so nothing to install.

The problems in this file is that it's dependent on an AWS url with multiple REST API endpoints and GraphQL queries and mutation to a service (Graphcool) that is now shutdown. And the prototypo part for both looks not public so it looks like you'll need to reimplement some things or remove them.

And it's used in many places for the Graphcool part, see https://github.com/byte-foundry/prototypo/search?q=apolloClient

Jolg42 avatar Sep 24 '21 22:09 Jolg42

If you're not after the latest version, you can check out the feat/offline_prototypo branch (#349). Still works for me!

what version of node are you running? Do you do:

npm install

then

npm run start

then

npm run offline

?

Typogram avatar Mar 17 '22 04:03 Typogram

I'm using node 11. If you are having issues with the feat/offline_prototypo branch, here are some things to try

  • remove line 5 from app/scripts/main.js (react-joyride-compiled.css)
  • change the version of bluebird in package.json from ^3.1.1 to ~3.1.1 (there is a compatibility issue with 3.7+)
  • use Chrome (on my machine it doesn't work in Firefox)

TeisD avatar Apr 01 '22 17:04 TeisD

Hello, Have anyone being successful get the software running? I have know programming knowledge, can someone provide an installable or executable file for the software? thanks

ahmedkhoswan avatar May 17 '22 12:05 ahmedkhoswan

the tool now runs but unable to export the font

rahul-dutt-sharma avatar Nov 30 '22 06:11 rahul-dutt-sharma