Horoscope track node is a node that crawling, stores and manages your data from Horoscope-v2.
Main components:
- Crawler: crawl data from Horoscope-v2 and store into PostgreSQL
- Backend API: provide a backend API(GraphQL)
Node application written by TypeScript. With crawler, we use Bull to manage the queue of crawling.
Requirements:
- NodeJS
- PostgreSQL
- Redis
Start service:
# Install environment
npm install
# create file env
cp .env.example .env
# run with cli
npm run start:dev
npm run build
: Build .dist folder to start production modenpm run start
: Start production modenpm run prisma:migrate
: Migrate database with Prismanpm run start:dev
: Run with development modenpm run docker-compose-up
: Run with docker
Requirements:
- NodeJS
- Docker & Docker compose
Start:
Confirm that DATABASE_URL in .env file matches with docker-compose.env
npm run docker-compose-up