Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

Suggestions to improve documentation #553

@chadfawcett

Description

@chadfawcett

When setting up the repo to work on #552 I ran into several things that were unclear or seemed out of date with the README. I thought I would try to make note of the things that were unclear in order to shed some light on how the project looks as a newcomer. I don't have the time in the immediate future to make a PR updating the docs, but may be able to in the future. I think this would be a good first issue for someone to run through the docs from scratch and fix anything that's out of date.

Note: I am running within docker-machine, so please excuse any issues that are related to the fact that I was not running directly on the host.

  • Is there a reason for the inconsistency between the container and host ports for the app? (ie 3030:3000) It's not a huge deal, but the console outputs that the server is running on port 3000, so I first try to access it there. I had read the README through once already so I thought I remembered it being 3030 which prompted me to look at the README again, as well as the dev.sh file. If someone was to miss that in the README, they could get led on a wild goose chase trying to find why they couldn't access it on port 3000.
    • Suggestion: change both ports to be the same, so the port logged out in the console is the ones used to access the app from the browser.
  • The bash scripts need to be called using their path (ie ./setup.sh, ~/devex/setup.sh, $(pwd)/setup.sh, etc)
    • Suggestion: Update the README to ./setup.sh and ./dev.sh
  • The dev container was already using Node 8, and nvm wasn't installed as the README suggests.
    • Suggestion: Remove this section from the README
  • None of the test scripts worked, and neither of the locations for tests exist (app/tests/ and public/modules/*/tests/)
    • Suggestion: It looks like there have been some improvements/changes to the tests. README should be updated to show how to run new tests.
  • The commit message guidelines should be referenced in the README. I was lucky to only have a single commit in my PR, so it was easy to update the commit. It'd be a pain to have to go back and edit the messages for multiple commits. I looked at previous PRs, and it didn't look like anyone was using this commit convention, so maybe it is no longer a requirement.
    • Suggestion: The PR template shouldn't be the first place to enforce commit message conventions. Ideally I would be aware of this before making my first commit. Alternatively, if this isn't a convention actually in use, the PR template should be updated.
  • npm run dev with watch mode wasn't updating when changing files. Granted, this command isn't documented, so it may or may not be recommended to use. I just didn't want to have to stop and start the server each time I made a change. So I went looking for a dev/watch mode. I tried forcing the dev restart with rs, but had mixed results. Not sure if there is a caching issue, but I usually had to completely stop the server and start it again before my changes took place.
    • Suggestion: Update or remove the dev/watch mode
  • There was nothing showing how to login using the usernames and passwords seeded into the DB. I had to search the codebase for alternate login routes (/authentication/signinadmin) in order to login. I initially tried signing in with GitHub but got a redirect-uri-mismatch error. The fact that there are GitHub secrets committed into the repo leads me to believe these are for development, and the callback uri is probably set to http://localhost:3030. However, since I am running inside docker-machine I wasn't actually accessing the app on localhost so my uri didn't match. Finding the admin login page was quicker than me creating my own GitHub app for testing, so I haven't confirmed this.
    • Suggestion: Document the intended login method in development. If GitHub is the intended method, the seeded logins shouldn't be presented. At least mentioning that the GitHub login is supposed to work, I may have gone deeper into getting that to work.

May I also suggest adding a CODE_OF_CONDUCT to formally outline the expected behaviour of contributors and participants?

I think that is everything I came across. Again, please excuse anything related to the fact that I'm running within docker-machine, but I feel at least some of these suggestions would help future contributors.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions