Sign inSign up

manojsparrow/notes

By manojsparrow

•Updated over 2 years ago

A small application to write and share notes between users.

Image
0

143

manojsparrow/notes repository overview

⁠ReactJS and Node.js Application with Hapi.js Framework in Docker

⁠Overview

This repository contains a web application built using ReactJS for the frontend, Node.js for the backend, and the Hapi.js framework for API development. The application enables users to store and share notes seamlessly.

⁠Features:

⁠ReactJS Frontend:

Dynamic and responsive user interfaces. Modern UI components for an enhanced user experience.

⁠Node.js Backend with Hapi.js:

Robust backend logic and API development. Seamless communication between frontend and backend components.

⁠Docker Compose Run

notes-compose.yaml

version: '1.0'

services:
  db:
    image: postgres:12.8
    container_name: postgres-notes
    restart: always
    ports:
      - 5432:5432
    expose:
      - 5432
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: password123
    volumes:
      - postgres-data:/usr/share/psql/data

  app:
    image: manojsparrow/notes:1.1
    container_name: notes_application
    restart: always
    ports:
      - 80:80
    expose:
      - 80
    environment:
     POSTGRES_HOST: "host.docker.internal"
     POSTGRES_USER: "postgres"
     POSTGRES_PASSWORD: "password123"
     POSTGRES_DB: "notes"
     POSTGRES_PORT: "5432"
     BITBUCKET_CLIENT_ID: ""
     BITBUCKET_SECRET:""
     BUNDLE_URL:"http://localhost"
     KEY_PASSPHRASE: "\$1234\$"
     HOST: "0.0.0.0"
     PORT: "80"
volumes:
  postgres-data:

To run this file, use this command

docker compose -f notes-compose.yaml up

and to stop

docker compose -f notes-compose.yaml down

Tag summary

Content type

Image

Digest

sha256:d07c64d94…

Size

340.5 MB

Last updated

over 2 years ago

docker pull manojsparrow/notes:69b79aa