Skip to content

clintonlunn/tick-map-backend

Repository files navigation

Tick Map Backend

This is the backend service that contains the REST service for the tick-map-client

Prerequisites

  • Node.js
  • Docker
  • Docker Compose

Installation

  1. Clone the repository:

    git clone [email protected]:clintonlunn/tick-map-backend.git
  2. Navigate to the project directory:

    cd tick-map-backend
  3. Install the dependencies:

    yarn

Running the Service

To start the backend service: bash yarn start

To spin up the database, use Docker Compose:

docker-compose up

Docker-compose.yml

version: "3.8"
services:
  db:
    container_name: postgres_container
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: root
      POSTGRES_PASSWORD: root
      POSTGRES_DB: tick_db
    ports:
      - "5432:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data

  pgadmin:
    container_name: pgadmin4_container
    image: dpage/pgadmin4
    restart: always
    environment:
      PGADMIN_DEFAULT_EMAIL: [email protected]
      PGADMIN_DEFAULT_PASSWORD: root
    ports:
      - "5050:80"
    volumes:
      - pgadmindata:/var/lib/pgadmin

volumes:
  pgdata:
  pgadmindata:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published