Table of Contents
This web application allows users to compress and decompress text files using the Huffman coding algorithm. The backend of the application is built using C++ and Express.js, while the frontend is developed using Next.js. This README provides instructions for setting up and using the application.
Huffman coding is a lossless data compression algorithm that assigns variable-length codes to input characters based on their frequencies. This enables more frequent characters to be represented with shorter codes, reducing the overall size of the data. The backend handles the compression and decompression processes, while the frontend provides a user-friendly interface for interacting with the application.
This is an example of how you may set up your project locally. To get a local copy up and running follow these simple example steps.
-
1. Clone the repo
git clone https://github.com/Rutvik-R/Compress_decompress.git
-
2. Install all packages from package.json
cd Compress_decompress\Front_end npm i cd ..\Back_end npm i
-
3. Create .env file in Front_end and write
BACK_END_URL = http://localhost:5000/
-
4. Start Front_end Server for that go in Front_end and run
npm run dev
-
5. Start Back_end Server for that go in Back_end and run
node App.js
-
6. Finally Done now open this url in Browser
http://localhost:3000/
Rutvik Ranpariya - @twitter_handle - [email protected]
Project Link: https://github.com/Rutvik-R/Compress_decompress