Welcome to our backend repository! This backend is built using Express.js and MongoDB, with additional functionality for optical character recognition (OCR) using Tesseract.
Before getting started, make sure you have the following installed on your system:
- Node.js (https://nodejs.org/)
- MongoDB (https://www.mongodb.com/)
- Tesseract OCR (https://github.com/tesseract-ocr/tesseract)
- Clone this repository to your local machine:
git clone <repository-url>
- Navigate to the project directory:
cd <project-directory>
- Install dependencies using npm:
npm install
- Make sure MongoDB is running on your local machine.
- Install Tesseract OCR. Follow the instructions provided in the Tesseract OCR documentation for your operating system.
Configuration
- Create a .env file in the root directory of the project.
- Add the following environment variables to the .env file:
PORT=3000 # or any preferred port number
MONGODB_URI=<your-mongodb-uri>
Running the Server To start the server, run the following command:
npm start
The server will start running on the port specified in the .env file
Using Tesseract OCR This backend includes functionality for optical character recognition using Tesseract. To utilize this feature, you can make HTTP requests to the appropriate endpoints. Ensure that you have Tesseract properly installed and configured on your system.
Contributing Contributions are welcome! If you have any suggestions, improvements, or feature requests, feel free to open an issue or create a pull request.