Skip to content

jaskaran-ivalt/ivalt-c2pa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iVALT C2PA Image Verification Project

alt text

This project utilizes C2PA to embed data, such as a mobile number and name, into images. It includes a comprehensive verification feature that reads manifest data from the image and sends an authentication request to the iVALT app, facilitating secure biometric verification.

Prerequisites

Getting Started

1. Clone the Repository

Clone the project repository from your version control system:

git clone https://github.com/jaskaran-ivalt/ivalt-c2pa.git
cd ivalt-c2pa

Setup Environment Variables

2. Setup Environment Variables

Here's an updated section for the README file, including details about the .env.example file and the command to copy it:

  1. A sample .env.example file is provided in the project to help you set up the necessary environment variables.

  2. To create your .env file from the example, run the following command:

    cp .env.example .env
  3. Open the newly created .env file and fill in the required values:

    # Example .env file
    # iVALT API Configuration
    IVALT_PRO_API_URL=<your-ivalt-pro-api-url>
    IVALT_PRO_API_KEY=<your-ivalt-pro-api-key>
    • Replace <your-ivalt-api-key>and <your-ivalt-pro-api-url> with actual values needed for your setup.

Docker Setup

3. Dockerfile

The Dockerfile is already provided in the project and uses the following content:

FROM jass4704/ivalt-c2pa:latest

4. Build the Docker Image

If you have made changes to the code or want to build the image locally, you can use the following command:

docker build -t ivalt-c2pa-local .
  • -t ivalt-c2pa-local: Tags the image with the name ivalt-c2pa-local.

5. Run the Docker Container

Run the container with the appropriate environment variables and port mapping:

docker run -d --env-file .env -p 3000:3000 ivalt-c2pa-local
  • -d: Runs the container in detached mode (in the background).
  • --env-file .env: Loads environment variables from the .env file.
  • -p 3000:3000: Maps port 3000 on your local machine to port 3000 on the container.

6. Access the Application

Once the container is running, access the application in your web browser at:

http://localhost:3000

Additional Information

  • Environment Variables: Ensure that all necessary environment variables are correctly set in the .env file. The application depends on these for proper functionality.

  • Biometric Verification: This project integrates with the iVALT app for biometric verification. Ensure the iVALT app is configured to handle authentication requests.

  • Viewing Logs: To view logs or debug issues, run:

    docker logs <container-id>
  • Stopping the Container: Use the following command to stop the running container:

    docker stop <container-id>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published