Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
505 stars 204 forks source link

Extract requireable Postleaf module #84

Closed bigdogwillfeed closed 6 years ago

bigdogwillfeed commented 6 years ago

Pull Request Summary

See #83 for motivation.

  1. Separate app.js and index.js (app.js deals with .env, creating the Express app, and listening on a port while index.js hooks up the middleware and routers that makes Postleaf go)
  2. Configurable paths for data, themes, and uploads (so they are outside of node_modules directory

All code contributions are subject to the terms of the Contributor License Agreement described in CONTRIBUTING.md.

bigdogwillfeed commented 6 years ago

I apologize for the noisiness of each commit... developing directly in Glitch means I don't have good visibility for what the diff is going to be until after it's exported to GitHub. Viewing by file, rather than by commit might be simpler to understand what changed

claviska commented 6 years ago

This sounds awesome, and I'm definitely open to anything that makes Postleaf easier to install. That's honestly the biggest reason more people aren't using it yet.

Let me look at this more in depth after the weekend 😄

claviska commented 6 years ago

Sorry for the delay — this looks great. Thanks for submitting it :)

bigdogwillfeed commented 6 years ago

Happy to help; thanks for taking the time!