Simple script to create file and directory template structure for static front end web development with bootstrap CDN included.
You can select between three different templates
- Blank
- Basic
- Delux
The Script will generate the files and directorys based on the project name and template specified.
Good for practicing, testing or just getting a head start.
Running the script without any options.
Running the script with the 'n' flag to set the project name and 't' flag to set the template.
The script will ask if a directory with the same project name already exists and if you would like to overwrite it.
Example of Web Template 3 - Delux
Run the script after giving execute permissions.
chmod +x create_web_template.sh
./create_web_template.sh
-n Set the project Name. Use "" for multi word name. i.e. ./create_web_template -n "Project 1"
-t Set the template for files.
1 Blank
2 Simple
3 Delux
-h Show this help message.
You can use the 'n' flag to set the name of the project.
./create_web_template.sh -n Project1
Use quatation marks for multi word projects
./create_web_template.sh -n "Web Project 1"
You can use the 't' flag to set the template that you would like to use.
./create_web_template.sh -n Project1 -t 1
Best way to use this script is to make an alias for it so you can run it where ever you like. Add the line to your .bashrc and point it to where the script is located. Navigate to the folder where you want to generate the project files.
alias wt="~/create_web_template.sh"
wt -n Project1 -t 1