This project makes it easier for Lasallian student athletes to create AAFs (approved absence forms). AAFs, in a gist, are documents that student athletes submit to the Office of Sports Development to be excused in their classes to attend events organized by their sport.
This project was built with love using Bootstrap, Node, Express, TypeScript, Multer, and Docxtemplater.
After form submission, the backend, created using an Express router, collects the inputted data the user entered and cleans it. Afterwards, it creates a new document file using docxtemplater and renders the file along with the necessary information it needs. It then lets the user download the file after.
- Input all of the necessary information such as the professor's name and department and the details about the event.
- You may rename the file by inputting the new file name in the input field next to the 'Reset' button.
- After you're done and content with the inputted information, press the 'Submit' button and the file should be downloaded to your machine.
- Make sure to double check the file after receiving it.
- Clone the repository.
git clone https://github.com/JSintos/AAF-Maker.git
- Install the dependencies
npm install
- Build the TypeScript files.
tsc
- Run the server. Do note that the server runs on port 3000. This can be changed by editing the port number inside
./src/app.ts.
node ./dist/app.js
npm start is also an option if you have nodemon installed.
- Add presets for student athletes (i.e. a preset for student athletes playing basketball or volleyball or doing cheerleading)
