prototypo
prototypo copied to clipboard
How to get the app to run locally?
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?
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.
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.
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.
If you're not after the latest version, you can check out the feat/offline_prototypo branch (#349). Still works for me!
@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 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 thanks a lot! Works perfectly
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 😃
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 see above https://github.com/byte-foundry/prototypo/issues/767#issuecomment-696651203
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 🙏
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
If you're not after the latest version, you can check out the
feat/offline_prototypobranch (#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
?
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
bluebirdin package.json from^3.1.1to~3.1.1(there is a compatibility issue with 3.7+) - use Chrome (on my machine it doesn't work in Firefox)
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
the tool now runs but unable to export the font