https://github.com/edgeapp/edge-rates-server
https://github.com/edgeapp/edge-rates-server
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/edgeapp/edge-rates-server
- Owner: EdgeApp
- Created: 2020-06-08T22:48:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T00:07:53.000Z (about 2 years ago)
- Last Synced: 2024-04-12T07:10:20.784Z (about 2 years ago)
- Language: TypeScript
- Size: 906 KB
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# edge-rates-server
> A REST API for retrieving and storing historical crypto and fiat exchange rates.
#### Installation
Install Yarn
https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
Install Node
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
Install and run CouchDB v3.1 (use apt install process for Ubuntu 18.04)
https://docs.couchdb.org/en/3.1.0/install/index.html
Install and start Redis
https://redis.io/docs/getting-started/installation/install-redis-on-linux/#install-on-ubuntu
redis-server
Install pm2 globally
npm install pm2 -g
Install pm2 log rotation (note: the command is pm2 instead of npm)
pm2 install pm2-logrotate
Run Yarn
yarn && yarn prepare
#### Running Source
yarn start
yarn startEngines
#### Launch API server and rates engine for production
pm2 start pm2.json
#### Restart, stop, delete service
Control pm2
pm2 stop
pm2 restart
pm2 delete
Launch pm2 on restart
pm2 startup
pm2 save
#### Monitor logs and status
pm2 monit
pm2 logs
### Terminate SSL using Caddy
Please see our [Caddy setup documentation](./docs/caddySetup.md) for details.