This is an exercise in creating a simple REST API for an online forum using Koa and MongoDB.
npm install
to install packages.npm run dev
to run server (available atlocalhost:3000
).- At the moment requires locally installed MongoDB (follow instructions here.
Koa requires node v7.6.0
or higher.
I used some guides and looked at a few other repos (thank you!):
- https://koajs.com/
- https://www.crowdbotics.com/blog/how-to-build-a-rest-api-with-koajs
- https://www.tutorialspoint.com/koajs/koajs_restful_apis.htm
- https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/mongoose
- https://www.tutorialspoint.com/koajs/koajs_database.htm
- https://github.com/nishant-666/Rest-Api-Express-MongoDB
- https://github.com/Rishy20/REST-API