This project implements a Node.js service to meet the given criteria.
https://documenter.getpostman.com/view/17492278/2s93si1Vga
To install and configure the project's prerequisites and dependencies, please follow these steps:
-
Make sure you have Node.js and npm (Node Package Manager) installed on your machine.
-
Clone the project repository from GitHub:
git clone https://github.com/zainaboyedeji/fincratest.git
- Navigate to the project's root directory:
cd fincratest
- Install the required dependencies using npm:
npm install
- Create a .env file in the project's root directory and provide the necessary environment variables as specified in the .env.example file.
If the project requires a database, please follow these steps to create and initialize it:
-
Make sure you have MongoDB installed and running on your machine.
-
Update the MongoDB connection details in the
.env
file with your MongoDB configuration. -
Check src/seed_data directory and import the collection into MongoDB database (https://www.mongodb.com/compatibility/json-to-mongodb)
-
The default admin username is
babaramon
and password ispassword
npm run test
To start the project locally, run
npm run start:dev
During the implementation of this project, the following assumptions were made:
-
The database connection details are already provided and the database is running.
-
The required environment variables specified in the
.env.example
file are properly configured.
The following requirements have not been covered in this submission:
- Some part of the tests were ommited due to time constraint
- Logging was not implemented due to time constraint