-
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 changeserver/api/api.js
to enable the newly added router and models -
TODO demonstrates relations between mongoose collections (e.g. (blog post) -> (post comments) )
git clone
it locally or (better) fork it with Github- run
npm install
oryarn
- 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 theserver
folder and its subfolders. You need to name the test files after this pattern:someArbitraryName.test.js
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