Manual
For full use, you need to install Node.JS v20, PostgreSQL v15, Python v13.3, Nginx
Steps 1 - Preparing files
Steps 2 - Change config files
Nginx Configuration
In nginx.conf, you need to specify your domain or ipv4 address
The main config is config.sample.yaml for Kekkai
database:
user: 'DATABASE_USERNAME'
password: 'DATABASE_PASSWORD'
host: 'DATABASE_HOST'
name: 'DATABASE_NAME'
port: 5432
...
Fill in the data in the database item, as well as in the .env config
Steps 3 - Install libs
Install library. In /shared/logger, /shared/config, /shared/database, /collect-currency,/server,
the required node.JS libraries In each of the directories, you need to write this command
and install python libs
Start the nginx service
Steps 4 - Launch Services
Launch each of the services
There are all three services MainService, Collect-currency, Chart
MainServiceis an API for getting the exchange rateCollect-Currencyis a service for collecting and save the rate in a databaseChartServiceis a service for creating currency rate charts