-
Notifications
You must be signed in to change notification settings - Fork 40
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 started? (missing doc?) #50
Comments
Hi @deg, sorry to hear that our docs aren't helping you through the getting started experience. Thanks for the feedback. I'm going to leave this issue open while we try to address your points in the docs. In the meantime, if you're able to join the Clojurians slack team, I can help you out today on the #pedestal channel. |
Hi @deg, thanks for reaching out with the issue and asking for help. As @mtnygard mentioned, there is some support in the #pedestal channel on the Clojurians slack. You can also use the Pedestal mailing list, but feedback will be a bit slower. Out of curiosity, how did you discover Vase? Some immediate answers:Vase ships with Datomic-Free bundled into the deps and the default service created is using an in-memory database. That's fine for getting started, but you'll want a durable database for production. Vase is a thin layer on top of Pedestal, so a Vase application is deployed like a Pedestal application. For many, an "uberjar" is the easiest approach:
|
Note to self: readme indicates Vase is "totally self-contained." That's true but only for dev with in-memory. We should add a doc about moving from in-memory to on-disk. |
Also, we should make sure our language about the tiers matches the current names on datomic.com. |
IMHO, since Vase wants to be self-contained, it should also link to documentation that exists elsewhere, to make things easier for newcomers (or maybe even duplicate key parts). Basically, it feels to me that the current docs are aimed at an audience already very familiar with Pedestal and Datomic. But, even among us current Clojure developers -- and certainly in the wider world -- there are many people for whom Vase seems like a great framework for creating a server, even though we lack any real exposure yet to Pedestal or Clojure. Areas I'd love to see documented here include:
|
Capturing something I just wrote on the Slack channel, 'cuz it lists a few places to fix up the docs: deg [3:07 PM]
End of saga, I hope! |
Hi @deg -- Sorry for getting tripped up. The Pedestal docs have moved a few a times, but are now in a dedicated spot -- being served at pedestal.io and the content in a dedicated github repo. You should be using that site and the Pedestal Samples for all of your learning. As you find broken links (or links to old content), feel free to open an issue or pull-request directly on the Pedestal project. I'll patch up the issue with the README right now. |
I wonder if we can do some SEO work to displace those old links. New blogs linking to pedestal.io? Whoops, just noticed we're still in the Vase repo. Comments about Pedestal documentation should be redirected to http://github.com/pedestal/pedestal-docs. |
If we can find a way to generate hard 302's from github, that would fix the navigation issues and the SEO issues. Not sure that's possible. |
* Readme is consistent with Datomic team's lingo for tiers. * "Self-contained" vs "Install Datomic" (in the guides)... resolved. * Disagreement about whether installing Datomic was needed, now resolved. It isn't for in-memory usage. cognitect-labs#50
tl;dr - The startup docs have some gaps that are hurting me as a newbie.
I'm taking a first look at Vase, and have never used Datomic. I'm trying to find the easiest path to a minimal working example which, I guess, would include a running service that I can deploy locally or to some cloud service, and that can persist data in the face of a system reboot.
I did 'lein new vase your-first-api', and am indeed up and seeing Hello World.
I don't know if I already have a database configured, nor how to test. I see the following lines in the docs:
In docs/your_first_api.md:
But:
And, then, once I get Datomic setup, how I understand that it starts as an in-memory database. How do I persist to disk? This is just a hobbyist project now, so I'm fine with something simple. I see http://docs.datomic.com/backup.html, which may be all I need, but I don't yet see what/how I need to integrate into my project.
And, maybe out of scope, but it would be good to have a few lines about how to deploy to a production server.
The text was updated successfully, but these errors were encountered: