Skip to content

💸 simple and easy to track your crypto.

Notifications You must be signed in to change notification settings

dominickolbe/coins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ce960cf Â· Mar 1, 2022
Sep 10, 2021
Mar 1, 2022
Jun 4, 2021
May 31, 2021
May 31, 2021
May 31, 2021
May 31, 2021
Aug 15, 2021
Mar 1, 2022
May 31, 2021
Sep 24, 2021
Nov 26, 2021
Mar 1, 2022
Aug 17, 2021
Mar 1, 2022

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 🇩🇪