Skip to content

A full-stack search app made with Angular and Express.

Notifications You must be signed in to change notification settings

leoncik/CompoSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CompoSearch

A full-stack search app made with Angular and Express.

Table of contents

Presentation

About this project

This is a personal project I have made to learn more about Docker and continue to explore Angular. It is a simple search app where you can search for a composer and visit his associated page.
My focus on this project was more on the structure of the app (Dealing with pre-commit Hooks in a monorepo architecture, Docker, CI, testing) than the features of the App itself.

Features and tech stack

How to use

Launch and stop the project

Make sure that the Docker daemon is running.

Use docker-compose up to launch the project.

The front-end will be available on: http://localhost:4200/

Use docker-compose down to stop the project.

API documentation

To access the API documentation, first make sure that the server is running by running the app (see Launch and stop the project).

The API documentation will be available at this address: http://localhost:3000/api-docs.

Tests scripts (client)

To run the E2E tests for the client, first make sure that you are in the client directory:

  cd client

Then you can run this command to launch the tests with UI Mode:

  pnpm exec playwright test --ui

Visit https://playwright.dev/docs/test-cli for more information about the most common options available in the command line.

Use the pgadmin panel

Login and create a server

  • Make sure that the project is running.
  • The pgadmin panel will be available on: http://localhost:16543/
  • Enter the credentials registered in docker-compose.yaml:
    • email: admin@example.com
    • password: password123
  • If this is your first login, click on: Object > Register > Server...
  • Give a name to your server (you can choose any name).
  • Click on the Connection tab and use the values written in docker-compose.yaml:
    • Host: database
    • Port: 5432
    • Username: admin
    • Password password1234

Run queries

  • Make sure that the project is running and log in to your pgadmin panel.
  • Click on your server and write the database password (password1234) to connect.
  • Navigate to your table: Databases > compo_search_database > Schemas > public > Tables > table_name.
  • Right-click on your table name and select: Query Tool.
  • Have fun with the query tool!