Skip to content

Latest commit

 

History

History
114 lines (70 loc) · 4.21 KB

README.md

File metadata and controls

114 lines (70 loc) · 4.21 KB

Project   |    Techs   |    General Information   |    Installation   |    Start   |    Test   |    Contributing   |    License


Run in Insomnia



Project 🌟

This repo contains a challenge proposed by Memed, it's an medicine checkout application based on e-Prescribing.


Deployed here.


Techs 🚀


General Information and Functionalities ℹ️

For production basis, I decided to implement an server on the application to handle the requests directly to the original API, it's also responsible to get all the information from each pharmacy listed on the original request.

The application has two languages implemented (Portuguese-BR and English-USA), the user can easily alter it on the Header of the page. But it doesn't affect the names of the items received from the API (since it does not have this functionality implemented, unfortunatelly).

On the Checkout Page (when the application finds the nearest pharmacy with lowest price), the user can also open a modal in which lists all the pharmacies found, the total price and each item value.

The application is 100% responsive, so the user can acces it on the web and mobile.

There is also a Not Found Page if the user tries to access a route that doesn't exists.




Installation 🔧

First you need to clone the project using git clone https://github.com/leoronne/medicine-checkout.git.

Then you can install the application using npm install or yarn install on the client and server directory.


Start 🔛

To start the application interface just run npm run start:web or yarn start:web on the root dir of the folder.

To start the application server just run npm run dev:server or yarn dev:server on the root dir of the folder.

Note: you need to create a .env file on the server directory and one on the client directory based on the example files.


Test ✔️

To run the tests on this application, just run npm run test:cover or yarn test:cover on the client directory, it will generate a coverage report on the same dir.


Contributing 🤔

Please read CONTRIBUTING for details on code of conduct, and the process for submitting pull requests to the project.


License 📝

License