Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
How do I test my app?
MBartlett21
Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭
I tried testing my test onshape app, but I can't add it to my document.
0
Best Answers
-
awk Member, Onshape Employees, Developers Posts: 78In order to add you app to a document you need to create a Store Entry in the developer portal, then sign in to the AppStore and you should see it listed. Initially store entries are private and cannot be seen by other Onshape users until you request it to be published, at which point our team will test the app and make sure everything looks good.
From the AppStore listing you can subscribe to the app and then add it to a document. If you need to have a few other people test the app you can create team in your Onshape account and choose that team as the 'visibility team' for the store entry in the developer portal, then those members of that team will also see the app when they sign in to the AppStore (before it's published).Director of API, Appstore, and App Partner Technical Support2 -
Jake_Rosenfeld Moderator, Onshape Employees, Developers Posts: 1,646@mbartlett21
No one will be able to see the app store listing besides you. Is there a reason you would rather not have it on the app store?Jake Rosenfeld - Modeling Team5 -
billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,071 PROYou can use your app without putting it in the app store. you can not add it inside an OS tab without it running in the app store. It will run in your own browser without it being in the app store. The agreement with the app store when it goes live says that you will not provide any outside links other than the app store. This is fair.
Be careful of your server supplier, godaddy shut me down when I ran my site through OS tab. andrew help me run a trace route which I show'd to godaddy who really didn't care. Their backend guys just freaked out when they saw that url signature. eventually they allowed it, but it was too late and a new server was born.
Since, I've spun up my on server and I'm free from the overlords!
5 -
billy2 Member, OS Professional, Mentor, Developers, User Group Leader Posts: 2,071 PROLooked through bubble's documentation and it looks really easy to setup a site. I doubt you'll have the issue's I had with godaddy. This was in the very beginning and their backend guys didn't like the fact my site was embedded inside an onshape iframe. They thought I was a spy or something. Even though they shut down the route through OS, my site stayed up and running. godaddy black listed me and there was nothing I could do. They have to protect their shared environment and anything suspicious got blacklisted.
I doubt you'll hit any bandwidth issues at first and would stick to the free plan until your traffic increases.
Each time you/user makes a server call, it counts as traffic, so one user will ring up more traffic than any other user on other bubble sites. When I display element images, I get the list of documents, then retrieve the list of images. With one click that's a minimum of 21 calls to the server and then I need to retrieve all the element images. It adds up. An api app will generate a lot more traffic than what bubble normally sees.
You have to have ssl, which bubble offers and it's nice they provide a mail server. Send out 2000 emails and see what bubble does. godaddy's limit is 2000/day.
I'd register with the app store, there's nothing to it. You'll need the codes to talk to OS servers. This doesn't mean your site will go live it just means you can start writing code. If you get everything cleaned up and working well, then you can take it live.
Do download load app explorer, it's a fast way to test api calls. It requires that you have some codes that registering will give you. You could test your communication ideas using app explorer and understand how things work.
I'm not sure how a bubble unit is defined and is $20/10 more units a deal? I pay $5/month for 10,000 hits/second. For $40/month I can expand to 4 servers, 3 are load balanced and the 4th handles the database = this could hit 40,000 hits/ second. My site is no where near either of these 2 extremes.
Database access tends to be the bottleneck. godaddy used cpanel which was pretty good at routing traffic although it was unpredictable. Sometimes fast/ sometimes slow, very unpredictable. That's the nature of shared hosting. The databases where always slow. I didn't realize it until I moved my site just how slow they were.
In the beginning, shared hosting will be fine. Eventually, you'll want more control and probably migrate to your own server where you're in control.
When you get it up and running, send me a link, I'd like to see what you're working on.
5
Answers
From the AppStore listing you can subscribe to the app and then add it to a document. If you need to have a few other people test the app you can create team in your Onshape account and choose that team as the 'visibility team' for the store entry in the developer portal, then those members of that team will also see the app when they sign in to the AppStore (before it's published).
I was wanting to try out the client messaging. Is there any way to do it without creating an app store listing?
IR for AS/NZS 1100
No one will be able to see the app store listing besides you. Is there a reason you would rather not have it on the app store?
Be careful of your server supplier, godaddy shut me down when I ran my site through OS tab. andrew help me run a trace route which I show'd to godaddy who really didn't care. Their backend guys just freaked out when they saw that url signature. eventually they allowed it, but it was too late and a new server was born.
Since, I've spun up my on server and I'm free from the overlords!
This is what it says in their manual about rate-limiting:
Add-ons
Bubble lets you run advanced programming operations on our servers. On the Professional plan and above, we reserve server capacity for your app to ensure that your app runs quickly. Each app with reserved capacity starts with 2 units, which determines the amount of server and database CPU time that your app can consume in a given interval. You can scale your app to match your app growth by buying additional units for $20/month (up to 10 additional units).
If your app temporarily exceeds its capacity, we rate-limit the speed at which it runs to keep it under the threshold. You can monitor your usage in real time from the Application Editor.
IR for AS/NZS 1100
I doubt you'll hit any bandwidth issues at first and would stick to the free plan until your traffic increases.
Each time you/user makes a server call, it counts as traffic, so one user will ring up more traffic than any other user on other bubble sites. When I display element images, I get the list of documents, then retrieve the list of images. With one click that's a minimum of 21 calls to the server and then I need to retrieve all the element images. It adds up. An api app will generate a lot more traffic than what bubble normally sees.
You have to have ssl, which bubble offers and it's nice they provide a mail server. Send out 2000 emails and see what bubble does. godaddy's limit is 2000/day.
I'd register with the app store, there's nothing to it. You'll need the codes to talk to OS servers. This doesn't mean your site will go live it just means you can start writing code. If you get everything cleaned up and working well, then you can take it live.
Do download load app explorer, it's a fast way to test api calls. It requires that you have some codes that registering will give you. You could test your communication ideas using app explorer and understand how things work.
I'm not sure how a bubble unit is defined and is $20/10 more units a deal? I pay $5/month for 10,000 hits/second. For $40/month I can expand to 4 servers, 3 are load balanced and the 4th handles the database = this could hit 40,000 hits/ second. My site is no where near either of these 2 extremes.
Database access tends to be the bottleneck. godaddy used cpanel which was pretty good at routing traffic although it was unpredictable. Sometimes fast/ sometimes slow, very unpredictable. That's the nature of shared hosting. The databases where always slow. I didn't realize it until I moved my site just how slow they were.
In the beginning, shared hosting will be fine. Eventually, you'll want more control and probably migrate to your own server where you're in control.
When you get it up and running, send me a link, I'd like to see what you're working on.
What I really like about Bubble is that you don't actually have to write code for APIs and whatever else.
For API calls to other websites, I just have to tell it what type of authentication and fill in three URLs to be able to log in a user with an external API. For other API calls, I just do a URL and query parameters for each call.
This is what I have done with https://featurescripts.bubbleapps.io/
I can get Bubble to expose an API, so I can query data from other sites.
Before I can embed a Bubble app into an Onshape document, I must allow embedding in iFrames in the app's settings, as, Bubble disallows iFrames by default.
Bubble automatically updates, like Onshape.
Bubble has a large variety of plugins that people have written. ( https://bubble.is/plugins )
You can also use pre-built templates that others have made. ( https://bubble.is/templates )
Bubble exposes their own website's source at https://bubble.is/page?id=meta_public if you want to have a look at it.
- Morgan
IR for AS/NZS 1100
Beats what I'm doing:
How do they parse json?
Do they have a merchant account template?