Boilerplate for node projects using:
- Webpack
- Nodemon
- Browsersync
- Module aliases
Important to execute these top to bottom!
git clone https://github.com/damianveltkamp/project-tech-team.git
npm install
Username that you use for your mongodb
Password that you use for your mongobg
Host string that you use for your mongodb
Email address from which emails will be send with nodemailer (example use, verification email on register)
Password of the email that you want to use to send emails from with nodemailer
Google recaptcha site key for version 2
Information on how to setup google recaptcha can be found here
Google recaptcha secret key
Information on how to setup google recaptcha can be found here
Generated string to set to the session, this string can be anything but highly recommended to generate a random string with node crypto
The name of the session cookie
The username that will be used for the redis server, this can be anything and this has no setup required.
The password that will be asked for when connecting to the redis-cli
The host address where you host the redis server, for local development this is localhost
redis-server redis.conf
npm run dev
Run local development server with webpack, nodemon and browsersync
npm run dev
Build with webpack development config
npm run build:dev
Build with webpack production config
npm run build:prod
Run command for running server on production
npm run deploy:prod
Find the license for the repository here License