Video of applicatoin running Frontend/Backend app that generates a certificate with correspondent hours filled the right codes, name and e-mail.
cd frontend/
npm install
npm run serve
cd backend/
npm install
npm run serve
Codes are available at /backend/server.js
variable VALID_CODES
:
const VALID_CODES = {
1: '1cx8J0',
2: '2c91j7',
3: '3c42km',
4: '4cKv54',
5: '5cj4xX',
}
Fill inputs with equivalent some VALID_CODES
and name/e-mail.
A certificate will be generated at backend/
implement frontend e-mail error as backend validation/sanitization is more restrict than HTMLs built-in
ex: nelson@usp.usp is valid for html @mail input type but backend blocks OR make validation more broader on backend so nelson@usp.usp is not blocked
Fields are now sanitized in backend using joi
library.
Codes are now sanitized as well
App now downlods the pdf generated