Skip to content

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

License

Notifications You must be signed in to change notification settings

leoronne/medicine-checkout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 94.6%
  • JavaScript 2.9%
  • HTML 2.3%
  • Shell 0.2%