Global

Methods

checkCopyType(options, type)

Checks what folder to copy

Parameters:
Name Type Description
options Object
type String

Name of the folder

cli(args)

Starting the main program

Parameters:
Name Type Description
args Array.<String>
Source:

copyFiles({Object))

Copies the setup folder per project.

Parameters:
Name Type Description
{Object)

options

createENVPy(options)

Generates env.py used for python projects

Parameters:
Name Type Description
options Object

createGitIgnore(options)

Generates a custom .gitignore file depending on project

Parameters:
Name Type Description
options Object

createHTML(options)

Generates HTML for projects

Parameters:
Name Type Description
options Object

createMarkdown(options)

Generates README and Markdown files

Parameters:
Name Type Description
options Object

createProcfile(options)

Generates a custom Procfile depending on project

Parameters:
Name Type Description
options Object

createProject(options)

Main function to create a project

Parameters:
Name Type Description
options Object
Source:

createProjectDir(options) → {Promise}

Creates the main Project directory.

Parameters:
Name Type Description
options Object
Returns:

Target Directory if created

Type
Promise

createVSCodeSettings(options)

Generates vscode settings per project.

Parameters:
Name Type Description
options Object

djangoApp()

Installs Django into the virtual environment

djangoOnly() → {String}

Generate variables only used by Django

Returns:

Stripe & AWS information

Type
String

(async) djangoSettings() → {Pormise.<String>}

Django specific settings

Returns:

Stripe & AWS Settings

Type
Pormise.<String>

(async) doesEnvExistForProject(options)

Checking if the user has created a virtual enviroment before

Parameters:
Name Type Description
options Object
Source:

(async) envQuestions(options)

Questions if the user wants us to create a virtual enviroment or if the user has one already what is the name of the folder.

Parameters:
Name Type Description
options Object
Source:

flaskApp()

Install Flask into the virtual environment

flaskOnly() → {String}

Generate variables only used by flask

Returns:

MongoDB information and Port

Type
String

(async) flaskSettings() → {Promise.<String>}

Flask specific settings

Returns:

Mongo URI Settings

Type
Promise.<String>

generateENVFile(options) → {Promise.<String>}

Generate environmental variables for env.py

Parameters:
Name Type Description
options Object
Returns:

Hostname and random generated string

Type
Promise.<String>

generateHTML(config) → {Promise.<String>}

This will generate the html for Milestone 1 and Milestone 2

Parameters:
Name Type Description
config Object

Configuration options

Returns:

Customized HTML 5 Boiler template

Type
Promise.<String>

(async) generatePath(config, os) → {Promise.<String>}

Generates correct path for virtual enviroment

Parameters:
Name Type Description
config Object
os String
Returns:

Customized OS path for virutal enviroment

Type
Promise.<String>

generatePythonSettings(config)

Generates python specific vscode settings. This includes a secret key and linting

Parameters:
Name Type Description
config Object
Returns:

Customized vscode settings per OS.

generateREADME(config) → {Promise.<String>}

Generates the Boilerplate for the Readme file

Parameters:
Name Type Description
config Object
Returns:

Custom boilerplate for README.md

Type
Promise.<String>

generateRequirements(options)

Generates the requirements.txt for Milestone 3 or Milestone 4

Parameters:
Name Type Description
options Object

generateTESTING() → {String}

Generates the Testing.md for the project with boilerplate

Returns:

Full boilerplate for Testing.md

Type
String

(async) getDevNul() → {Promise.<String>}

Checks if we want to use dev/null or Nul

Returns:

Nul or dev/null

Type
Promise.<String>

getOS() → {Promise.<String>}

This will return the name of the platform

Returns:
  • Name of platform
Type
Promise.<String>

gitTasks(options)

Will execute git init and git add with a commit

Parameters:
Name Type Description
options Object
Source:

installVirtualEnv(options)

Installing and using virtualenv

Parameters:
Name Type Description
options Object

(async) parseArgumentsIntoOptions(rawArgs)

Input taken directly from the user

Parameters:
Name Type Description
rawArgs Array.<String>
Source:

(async) pipInstallAndFreeze(options)

Using virtualenv to freeze and install correct pip packages

Parameters:
Name Type Description
options Object

(async) promptForMissingOptions(options)

Parameters:
Name Type Description
options Object
Source:

(async) targetOS(options, platform)

Sets up the correct targets for use depending on OS

Parameters:
Name Type Description
options Object
platform String

title(text, font)

Creating custom title

Parameters:
Name Type Description
text String

The text to display

font *

The Font used