As minimum requirements you need to have installed:
- node.js version 16.13.0 or higher.
- npm version 8.1.4 or higher.
Set environment variables:
- Create a file called dev.env
- Use reference
-
Download the project by opening the terminal and executing the following command:
git clone https://github.com/luisangelsalcedo/mirent-api.git -
Get into the project directory by executing the following command:
cd mirent-api -
Install all dependencies by executing the following command:
npm install -
Run the application by executing the following command:
npm run dev -
Open the following URL http://localhost:5000 in your browser.
If you have any questions, contact us
You can find all the functionalities of the api documented in the following link: miRent api documentation
Set environment variables for tests:
- Create a file called test.env
- Use reference
Run the application in the test environment:
- Running the command:
npm run dev-testto start the application in the test environment. - Open another terminal
- Running the command:
npm run testto run all the tests.
