This project contains file to generate pdf receipts of apartment members.
Prerequisite:
- Node js with npm installed.
- Download dependency bu running npm i
- Create json with data for apartments
- format is attached as excel sheet in data folder, fill data.
- cash: if amount is paid through cash.
- bank: If amount paid through bank transfer, fill neft/imps/upi id here.
- save file as csv
- convert it to json from csv2json
- Download this json file and place it to data folder.
- format is attached as excel sheet in data folder, fill data.
- Good to start now.
How to run:
- run project with command: npm start
- run post call on below url using postman or any rest client: http://localhost:3000/generateall
- Check if post returns success and pdfs are generated in receipts folder
- Hashes(sha256sum) will be also generated with flat-numbers and pdf filenames in data folder as filename -.json . This file is used when someone else generates PDF or tries to forge/edit PDF.
😄 😄