ioncreature / nest-clickhouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Test Nest with ClickHouse service

Work with submodules

This repo contains submodules. Please install them before proceeding.

To clone this repo with submodules:

git clone --recurse-submodules https://github.com/ioncreature/nest-clickhouse.git

To pull submodules changes into existing repo:

git submodule update --init --recursive

Setup .env

Copy .env.example to .env and make changes if needed.

Installation

npm i

Get ready container

Start ClickHouse in Docker

make up

Init Database migrations

make clickhouse-generate name=init

Apply any non-applied Database migrations

make clickhouse-migrate

Working with the app

Run the app

make start

By default app is listening on http://localhost:80

Stop the app

make down

Working with Database migrations

To create migration

make clickhouse-generate name=<some-name-for-migration>

To run migrations

make clickhouse-migrate

About


Languages

Language:TypeScript 74.7%Language:JavaScript 14.2%Language:HTML 6.8%Language:Makefile 1.8%Language:Dockerfile 1.5%Language:Shell 1.0%