Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the app to run locally? #767

Open
Connum opened this issue Jul 13, 2020 · 17 comments
Open

How to get the app to run locally? #767

Connum opened this issue Jul 13, 2020 · 17 comments

Comments

@Connum
Copy link

Connum commented Jul 13, 2020

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?

@yannickmathey
Copy link
Contributor

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.

@Connum
Copy link
Author

Connum commented Jul 14, 2020

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.

@yannickmathey
Copy link
Contributor

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.

@TeisD
Copy link

TeisD commented Sep 22, 2020

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

@He1nr1chK
Copy link

@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?

@TeisD
Copy link

TeisD commented Oct 27, 2020

@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.

@He1nr1chK
Copy link

@TeisD thanks a lot! Works perfectly

@Jolg42
Copy link

Jolg42 commented Feb 16, 2021

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 😃

@paraampampampam
Copy link

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

@yannickmathey
Copy link
Contributor

@paraampampampam see above #767 (comment)

@samchop
Copy link

samchop commented Sep 24, 2021

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 🙏

@Jolg42
Copy link

Jolg42 commented Sep 24, 2021

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

@Typogram
Copy link

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

?

@TeisD
Copy link

TeisD commented Apr 1, 2022

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)

@ahmedkhoswan
Copy link

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

@rahul-dutt-sharma
Copy link

the tool now runs but unable to export the font

@andreanhendy
Copy link

can someone here make this live again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

12 participants