Skip to content

💸 simple and easy to track your crypto.

Notifications You must be signed in to change notification settings

dominickolbe/coins

Repository files navigation

GitHub package.json version GitHub release (latest by date) GitHub Workflow Status

💸 💸 💸

coins

simple and easy to track your crypto.

Preview

Preview

see live version here

The current production build is served by vercel.com

https://coins.domnc.app

Getting Started

Prerequisites

I build this project with the following setup:

  • macOS Monterey v12.0 Beta
  • node v16.7.0
  • yarn v1.22.11
  • npm v7.20.3
  • Docker version 20.10.8, build 3967b7d

Development

  1. create your .env file based on the .env.example

  2. install all necessary dependencies

yarn install
  1. start frontend
yarn start:dev:frontend
  1. start server
yarn start:dev:server

Production

  1. create your .env file based on the .env.example

  2. build docker application

docker-compose --env-file packages/coins-server/.env build
  1. start docker application
docker-compose --env-file packages/coins-server/.env up
  1. stop docker application
docker-compose --env-file packages/coins-server/.env down

Commands

Update application

sh scripts/release-task

Import coins data from external API

sh scripts/run-import-coins.sh

Job tasks

Import coins data from external API

NODE_ENV=production yarn workspace coins-server ts-node --transpile-only ./src/tasks/run-import-coins.ts *OPTIONAL_PAGE*

crontab example

*/10 * * * * cd /coins && bash scripts/run-import-coins.sh >/dev/null 2>&1

LICENSE

Copyright © 2021 Dominic Kolbe 🇩🇪