Personal project to apply my studies on websockets. In this project, you can easily track the prices of various cryptocurrencies and major fiat currencies while chatting with others who share similar interests. Join us to learn, connect, and share your passion for the crypto world!
|
Node.js |
|
HTML |
|
CSS |
|
Express |
|
Socket.io |
Warning
To run the project, you must install the following tools on your machine:
- Node.js: v18 or higher.
The project uses two APIs to obtain the current exchange rate, you can create a free account on the page of both APIs:
- CoinGecko: The CoinGecko API is necessary to obtain information about crypto assets.
- ExchangeRate-API: The ExchangeRate-API is required to obtain information about fiat currencies.
[!IMPORTANT] Rename the .env_example into .env and change the EXCHANGE_RATE_KEY field.
PORT= //port to the server
COINGECKO_URL=https://api.coingecko.com/api/v3 //coingecko base url
EXCHANGE_RATE_API=https://v6.exchangerate-api.com/v6 //exchange rate api base url
EXCHANGE_RATE_KEY= //exchange rate api key
Clone the repository to your computer
git clone https://github.com/MichaelDouglasPIX/crypto-chat.git
Access the project
cd crypto-chat
Install dependencies
npm i
Start the project
npm run dev
After executing the project, it is possible to view the page with the chat and currency quotes.
- Visit
http://localhost:3000/
if the port in .env has been changed, access localhost with the new port.