Code Monkey home page Code Monkey logo

project-tech-team's Introduction

node-boilerplate

Boilerplate for node projects using:

  • Webpack
  • Nodemon
  • Browsersync
  • Module aliases

Table of contents


Prerequisites


Installing

Important to execute these top to bottom!

Clone this repository into your local project folder

git clone https://github.com/damianveltkamp/project-tech-team.git

Install packages

npm install

Setup environment variables

DB_USER

Username that you use for your mongodb

DB_PASS

Password that you use for your mongobg

DB_HOST

Host string that you use for your mongodb

EMAIL

Email address from which emails will be send with nodemailer (example use, verification email on register)

EMAIL_PASS

Password of the email that you want to use to send emails from with nodemailer

CAPTCHA_SITE_KEY

Google recaptcha site key for version 2

Information on how to setup google recaptcha can be found here

CAPTCHA_SECRET

Google recaptcha secret key

Information on how to setup google recaptcha can be found here

SESSION_SECRET

Generated string to set to the session, this string can be anything but highly recommended to generate a random string with node crypto

SESSION_NAME

The name of the session cookie

REDIS_USER

The username that will be used for the redis server, this can be anything and this has no setup required.

REDIS_PASS

The password that will be asked for when connecting to the redis-cli

REDIS_HOST

The host address where you host the redis server, for local development this is localhost

Spin up a redis caching server

redis-server redis.conf

To run a dev server type this into your terminal when you are inside your project folder

npm run dev

Usage

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

License

Find the license for the repository here License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.