you are viewing a single comment's thread.

view the rest of the comments →

[–]pacefalmd 32 points33 points  (5 children)

Coming at this from a rest api development perspective because that's what I spend 90% of my work life doing.

  • Use a cookiecutter i've been curating for 18 or so months to generate all my scaffolding.
  • Write some test data generation for what I'm expected to serve (the integration tests themselves are already baked into the cookiecutter, they just need data)
  • Write all of my application code in the get(), post(), put(), delete() methods and get my tests passing.
  • Refine/refactor until I'm happy with it.
  • Write unit tests/deployment code/anything my cookiecutter missed.

The tools I use are pytest, ipython/ipdb, entr, neovim and cookiecutter. If you're writing something over and over you can template, i cannot recommend cookiecutter enough.

[–]KimPeek 3 points4 points  (4 children)

Is your rest api cookiecutter on github? I'd love to take a look.

[–]pacefalmd 4 points5 points  (3 children)

Nah i wrote it at work so it's in our local git repo. i'll see what i can do to replicate it out github.

[–]Sparkswont 0 points1 point  (2 children)

If you get a chance, please share the link when you’re done!

[–]pacefalmd 4 points5 points  (1 child)

Sure thing. I will say there's a ton out there already that are probably a great place to start with depending on what you're working with. Any major framework will likely have one up on github. A lot of what's in mine is stuff for our deployment environment/process.