-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Chore: Wiki/Reflections from a Rails-newcomer #4504
Comments
Bit of overlap with this issue maybe #4328 (just posting so both are linked)
Absolutely agree.
This is fair too. If you wanted any explanation about this stuff, it's basically just a way to spin up all the necessary processes in one terminal window instance. Otherwise you'd have to open dedicated terminals for serving the Rails app, building the CSS, running the background worker, etc. Could probably be a short explanation on why this exists and what the commands in the Procfile do.
This seems good to me as well. Definitely the most convenient way to check with this stuff is through using the preview tool. I maybe don't think this should be something that's talked about in the contributing guide or the wiki's "Running the Project Locally." This is just because it's not super common that contributions are changing Kramdown (although of course, it's the first thing you're doing :laugh:). But maybe there can be another page on the wiki dedicated to Kramdown where this type of documentation could live?
That sounds correct to me. I could probably work on getting some of this settled over the weekend. |
@JoshDevHub Sounds good to me - I'm sure you and/or others more familiar with Rails and the web app code base would know best how to handle this. The most important thing I think is to at least end up with instructions that allows someone with experience but not any Rails experience (e.g. someone like me coming from the Node side of things) to be able to dive in and play around. There are a few things that aren't obvious as to how things are done (e.g. the Kramdown stuff) and/or someone without Rails experience might not know is necessary for something that wouldn't need an additional step elsewhere (e.g. had no idea that Like, the details can of course be figured out through exploring, but having the necessary commands for certain actions/changes beyond just "get the server up and running for the first time" would be extremely valuable. |
Great write up @MaoShizhong, thanks for putting this together! I've been running into CSS changes not taking effect a lot too. Clearing out the assets with I think we should try fixing that one before documenting it - I'll put an issue together for it. But I agree with the rest, it would be great to get our Kramdown and Procfile setups documented. |
Enjoyed exploring Rails for a bit! And if it's a bug, that makes sense since given the commands like |
Alright finally got some time to work on this 🚀 |
Checks
Chore: brief description of chore
format, e.g.Chore: Lesson complete button does not update on click
Chore description
Our web app wiki is great for getting started with setting up and starting the server for hosting the web app locally. However, my experience going through it indicated to me it's missing some additional instructions for things that aren't the most obvious to someone taking a dive into the codebase coming from something like Node-only experience.
Things I came across that the wiki doesn't make clear or mentions entirely, that I feel would be very helpful for anyone reading it:
foreman start
withbin/dev
, since the latter includesProcfile.dev
Procfile.dev
commands do? e.g. runningyarn build:css
rerun
gem - not sure if there is a better alternative in Rails-land.rails curriculum:update_content
to reflect in the app (brief summary of process for converting the lesson files and storing in DB, then just pulling HTML from DB in the web app instead of live-converting?).rails assets:precompile
to build intopublic/assets
, as that was taking priority overapp/assets
.Basically without needing to "teach Rails", the wiki could do with further instructions on how to actually use the app and code base. Very helpful for those like me with non-Rails experience but want to test a few things locally.
Of course, there may be other things I'm completely unaware of. e.g. I don't know what other things might require
rails assets:precompile
, or if there's an alternative to that command I just wasn't aware of. Or ifrails curriculum:update_content
would be needed for other files than just the Kramdown ones. Or if changes to any other files/directories would require additional steps and what those steps would be.Acceptance criteria
Additional Comments
Damn, is Ruby and RoR fun.
The text was updated successfully, but these errors were encountered: