Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.33 KB

README.md

File metadata and controls

32 lines (18 loc) · 1.33 KB

A node/express/mongoose blog app example using modern JS language features

Features:

  • lots of comments in the code so you can (hopefully) figure it out a bit easier

  • uses async/await extensively to simplify working with promises. MDN doc

  • modular, add a /server/api/<newFeature> folder and change server/api/api.js to enable the newly added router and models

  • TODO demonstrates relations between mongoose collections (e.g. (blog post) -> (post comments) )

Installation/usage

  • git clone it locally or (better) fork it with Github
  • run npm install or yarn
  • run npm run develop in a terminal to start developing locally. The server will reload every time you make changes in the code
  • npm run test:api will run all the tests it can find in the server folder and its subfolders. You need to name the test files after this pattern: someArbitraryName.test.js

Misc.

Works on my machine™ with node version v8.9.0

Not yet tested on Windows, so YMMV.

Created for Thinkful students by @tudorilisoi

Feel free to contribute your pull requests and any suggestions you may have.

Reach me on twitter: @tudorvi