This is the backend service that contains the REST service for the tick-map-client
- Node.js
- Docker
- Docker Compose
-
Clone the repository:
git clone [email protected]:clintonlunn/tick-map-backend.git
-
Navigate to the project directory:
cd tick-map-backend
-
Install the dependencies:
yarn
To start the backend service:
bash yarn start
To spin up the database, use Docker Compose:
docker-compose up
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: