Skip to content

nikolina2k/cat-pics

Repository files navigation

workflow

A web app that shows you cat pictures

Framework and overview

This web app was built using React.js library to create a UI that generates pictures of cats for people who want to see them and people who don't.

Deployed version

https://cat-pics.vercel.app/

Docker

This application can be easily containerized using Docker. Below are instructions on how to build, pull, and run the Docker image.

  1. Make sure you have Docker and Docker Compose installed on your system.

  2. Clone this repository to your local machine:

    git clone https://github.com/nikolina2k/core-course-labs.git
    
  3. Navigate to the project directory:

    cd core-course-labs
    cd app_typescript
    cd cat-pics
    
  4. Build and run the Docker image using Docker Compose:

    docker-compose up -d --build
    
  5. Or pull the Docker Image from existing repo on Docker hub:

    docker pull nikolina2k/cat-pics
    
  6. Run the Docker Container:

    docker run -p 3001:80 nikolina2k/cat-pics
    

The application will be accessible at http://localhost:3001 in your web browser.

Unit Tests

To run the unit tests, follow these steps:

  1. Install dependencies:

    npm install
    
  2. Run the unit tests using the following command:

    npm run test
    

CI

The following secrets need to be specified in order to run the pipeline:

  • DOCKER_PASSWORD - DockerHub password (or token).
  • DOCKER_USERNAME - DockerHub username.
  • SNYK_TOKEN - Snyk token.

About

ฅ^•ﻌ•^ฅ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages