Skip to content

A currency converter featuring 100+ supported currencies, multilingual support in English and Portuguese. Built using Next.js for the frontend and styled with Styled Components, complemented by a Nest.js backend. It integrates with the ExchangeRate api and is containerized with Docker.

Notifications You must be signed in to change notification settings

rodrigsmor/currency-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CURRENCY CONVERTER

πŸ“– Description

This is a simple currency converter application that supports over 160 currencies. You can easily perform currency conversions based on your preferences and access exchange rates for various other options. The core of the application was built in TypeScript, with a backend in Nest.js and a frontend in Next.js, also implementing Docker for container management and environment manipulation.


πŸ“œ Table of contents


βš’οΈ Technologies

Docker NPM Node.js Figma Typescript Nest.js Next.js Jest.js Storybook Cypress React Query Swagger Styled components i18n

πŸ–ΌοΈ Screenshots


🏑 Home Page

πŸ“± Mobile screenshots

Mobile screenshot Mobile screenshot

πŸ–₯ Desktop screenshots

Home page screenshot in Desktop screen


πŸ” Search Page

πŸ“± Mobile screenshots

Mobile screenshot Mobile screenshot

πŸ–₯ Desktop screenshots

Search page screenshot in Desktop screen


πŸƒπŸ½β€β™‚οΈ How to run

πŸ’­ Considerations: The application has been developed using exchangerate-api's services, meaning that if you want to run it locally you'll have to connect to the application and fill in the settings with your own credentials.

First of all, you'll need to clone the application to your own device. To do this, simply run the following commands in your terminal in the directory of your choice:

git clone https://github.com/rodrigsmor/currency-converter.git

Then, when the cloning is complete, you'll need to go to the cloned directory.

cd currency-converter

Well, now that you have the project present on your device, we can move on to the next steps.

βš™οΈ Preparing the environment

Once the application has been cloned to your local device and you has access to exchangerate-api's services, you'll need to do a small configuration for the application to work properly.

To do this, in the root of the project you have created, simply create a file called .env where you will leave the environment variables needed to run the application. Create the following variables in .env (don't forget to use the exchangerate-api credentials):

EXCHANGE_RATE_ACCESS_KEY = "the credential to access exchangerate-api services"
EXCHANGE_RATE_BASE_URL = "the base URL of the exchange rate api"

Finally, you need to create an environment variable to define which port the back-end will run on. To do this, create the following environment variable in your .env.

BACKEND_HOST="the back-end host port'

πŸ’­ Considerations: by default the front-end will be running on port 3000.

With these simple settings, your application should already be close to working perfectly.

πŸš€ Running the application

Now that the settings have been made, it's time to run the application. Assuming you already have Docker and docker compose running on your device, simply run the following commands:

docker-compose build
docker-compose up

If you prefer a shorter version, run the following in your terminal:

docker-compose up --build

That's it! Your application will be available to you at http://localhost:3001, you can test it in your preferred browser.

βœ… Run tests

Running the tests is actually quite easy. Given that the application is already built on your device, you'll need to run one of the following commands.

## to run backend tests
docker-compose up backend-tests

## to run frontend tests
docker-compose up frontend-tests (not available yet)

So that's it! It's running πŸŽ‰

πŸ“š Documentation

If you want to access the application's documentation, you'll need to follow these steps:

πŸ”Œ API Documentation

To access the API documentation, you should first follow the previous steps to set up and run the application correctly. Once the application is properly configured and running, you only need to open the /documentation route on the backend server in your preferred web browser. For example:

http://localhost:3001/documentation

🌍 Support links and tutorials

πŸ‘¨πŸ½β€πŸ¦± Author

Rodrigo profile picture

Developed with love by Rodrigo Moreira πŸ’œπŸš€


About

A currency converter featuring 100+ supported currencies, multilingual support in English and Portuguese. Built using Next.js for the frontend and styled with Styled Components, complemented by a Nest.js backend. It integrates with the ExchangeRate api and is containerized with Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages