3 ms·
Yep, it's a hosted service - you can publish your app with one click! Self-hosting requires an on-site Anvil installation. This is because many of the things we
by meredydd 9y ago
Yep, it's a hosted service - you can publish your app with one click! Self-hosting requires an on-site Anvil installation. This is because many of the things we do to make things easy (eg returning live database rows from server to client in a function call, then manipulating them directly there) require server-side report.
We think it's worth it - for example, it saves you building a new REST API each time you blow your nose - but the trade-off is that we can't just provide a "download as Flask app" button.
If you want to run server code on your own machine, though, check out the Uplink. It's a library you 'pip install', connect to your app, and then you can drive your code from the web. Here's an example driving a Raspberry Pi: https://anvil.works/blog/uplink https://anvil.works/blog/uplink
- copperx 9y agoWhile Anvil sounds interesting, one thing that pops to mind before buying into such a technology is "what are the limitations?" Could I build a multi-tenant app? Can I integrate JS components, like a sophisticated datagrid? Will I be able to query the DB with SQL as I wish? Does it use AJAX behind the scenes to speed up the responses? etc.
- meredydd 9y ago> Could I build a multi-tenant app? Yep! We have customers who have. > Can I integrate JS components, like a sophisticated datagrid? Yep! Reference docs: https://anvil.works/doc#js_interop https://anvil.works/doc#js_interop > Will I be able to query the DB with SQL as I wish? Our built-in DB is shared, so you can't run SQL against it on a standard plan. Dedicated-plan customers can do that. Or just spin up another database and access it with the standard Python tools - example: https://anvil.works/blog/dashboard https://anvil.works/blog/dashboard > Does it use AJAX behind the scenes to speed up the responses? The client/server RPC runs on websockets. More info: https://anvil.works/doc#runtime_details https://anvil.works/doc#runtime_details Happy to answer more questions - check out our forums: https://anvil.works/forum https://anvil.works/forum