Group Assignment using the MERN stack.
- Vinson Beduya
- Jacob Tupe
- Jose Santos
- In the root folder, open your CLI and run
npm install
. - Copy .env file from this private repository and paste it into the root folder locally. (Authorised Access Only)
- Run
npm start
ornpm run dev
to start the express server. For API tests, please follow instructions from Running API Tests.
In the root directory, open a bash terminal with super user/admin priveleges and run .\build_script.sh
Note: Ensure to restart the server for each time you run the tests to clear the mongodo-memory-server.
- Open two CLI windows.
- On the first CLI window, enter
npm run dev:mongo-mock
to run the mock server which uses mongodb-memory-server. - On the second CLI window, enter Enter
npm run test
to run the tests with mocha. - Close once finished.
- Article
title: String,
authors: String,
source: String,
pubyear: Number,
doi: String,
claim: String,
evidence: String,
sepractice: String,
moderated: Boolean,
approved: Boolean
- Practice
practice:string