Document Management System is an application that helps users manage their documents in an organized way. A User can be able to upload a document, edit it and share it with other users. Aside from enabling users to properly document their work with regard to category, the application permits users to work collaboratively on documents.
This application has been created using Nodejs environment and implementing Express as the routing framework and Mongoose, an object modeling package, to interact with MongoDB. Authentication has been implemented using Passport. For this version, only local strategy has been used. JWT tokens have also been used to authenticate routes.
- Install Nodejs and MongoDB
- Clone this repo or download the zipped file.
- Navigate to the master branch.
- Run
This will install the required dependencies.
npm i
- Run
npm test
to run the tests. 6. Run
gulp
Use Postman to consume the API. 7. Well...enjoy.
This application has been tested using supertest, which is a Super-agent driven library for testing Node.js HTTP servers using a fluent API and Mocha, which is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun.