Skip to content

tichzvidzayi/upload_file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File Uploads (pdf/images)

This project is a full-stack application designed to handle file uploads (PDFs and images), extract text from uploaded files, and display processed data. The backend is built with Node.js and Express uses, while the frontend is developed using Next.js with React.

Technologies Used

Backend

  • Node.js - JavaScript runtime
  • Express - web framework for building REST APIs
  • Multer - middleware for handling uploads
  • pdf-parse - library for extracting text from pdf files
  • tesseract.js - for extracting text from images
  • cors - middleware for cross-origins resource sharing

Frontend

  • Next.js - React framework for SSR and static site generation
  • React - JavaScript library for building interfaces
  • Axios - promise-based http client for making API requests

Project structure

image

Installation

Use the package manager [npm]. Navigate to folder

cd backend

Install packages

npm install

Run server

npm run dev

Navigate to folder

cd frontend

Install packages

npm install

Run server

npm run dev

Usage

  • Open http://localhost:3000/upload in your browser.

  • Fill in the form with your first name, last name, date of birth, and select a PDF or image file.

  • Submit the form to upload the file and process the data.

  • After successful submission, you will be redirected to the /display page, where the full name, age, and extracted text are shown.

  • If an error occurs, an error message will be displayed with an option to return to the upload page.

About

A Next and Node application for uploading pdf and images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published