Open nicolas2lee opened 6 years ago
I'm on board with adding some tests, but no big rewrites or new technology stacks, please. It's already done what it needs to do for the last couple of years, and the needs for this year will not be radically different.
Specifically, I'm saying no to points 1, 4, 5, 6, 8 and 9.
For the others: 2 is a good idea. 3 sounds good, but I think something is already logged (the files I got from the 2017 hosts included a ~500MB log file). 7 is OK if we can make clear improvements in readability, but let's do it gradually, piece by piece. And if the changes aren't a clear improvement, we'll leave them, because consistency is useful too.
At the moment, my priorities are to figure out:
rake test
before, but it seems to need some kind of setup before that.I did not know what is the issue for you to launch all tests. But it works perfectly for me, anyway some tests failed in local, because I did not configure the db correctly. I am sure rake test works, at least, it works in my local env.
To run the server locally, you just need to run rails s. As indicated in README.md, you need to export the key export SECRET_KEY_BASE=blah. Anyway it is a hidden bug, since normally with dev env, we do not need config this env variable.
What's more, I had configured vagrant for dev env in branch develop, for people who know vagrant, maybe it is convenient.
I add this wiki page to setup the dev env https://github.com/WRSC/tracking/wiki/Setup-dev-env
For IDE, I use intellij, since I am a java developer, I am familiar with Intellij
It was SECRET_KEY_BASE
that I was missing for the tests - I figured it out after that message above, so I wrote some instructions in the README. :-)
It sounds like you're more familiar with Ruby & Rails than me - can you see why we need SECRET_KEY_BASE
even in development?
Thanks for the wiki page, that looks very useful.
I regularly use Pycharm, which is the Python version of the Intellij family. But it doesn't look like Rubymine has a free version, and I probably won't buy an IDE just for this project. So far, I'm using Atom to edit stuff.
Some important tips to keep the app staying modern: