- create user
- activation user
- forgot password
- reset password
- session to login and auth middleware
- Bull jobs
- nodemailer with handlebars template
- body validation with Yup
- param validation using middleware
- all tested, except send mail (i'm learning about that)
$ git clone https://github.com/rvieceli/express-template.git awesome_project
$ cd awesome_project
$ yarn
$ yarn test --forceExit
-
create .env file on start path project (looks .env.example)
- APP_SECRET requires 256-bit key for production, for development use anything, but not empty
- database default and recomended is Postgres
- mongodb is not yet exemplified in this template
- redis is used to queue job
- mail is send to confirmation account and reset password
-
let's code!