This is kickoff project archetype for website creation. It is based on the Modern Business full website Bootstrap theme.
You must have Node.js and the kickoff utility installed.
You can create a new project with the following command:
kickoff -s tombenke/website_modern_business_archetype -d new_project_name
The utility will download the project template from GitHub, then asks some qouestions,
that you may give, or simple press Enter
in case you are satisfied with the default answers.
You are generating a single page website using the startbootstrap-creative template.
? The name of the project: mysite
? The short description of the project: This is my single page website.
? The contact email address: [email protected]
? The contact phone number: (+??) ?????-???
? The full name of the author: Anonymous
? The email address of the author: [email protected]
? The github account (username) of the author: anonymous
? The title of the page: My Site
? The Home Heading text: The Home-Heading above the UVP
? The Unique Value Proposition: This is the UVP, you can define it later
Converting package.json as Handlebars template
Converting src/parameters.yml as Handlebars template
After all the questions answered, the project will be generated. The project has the following structure:
├── dist
└── src
├── css
├── img
│ └── portfolio
├── js
├── less
├── md
├── partials
└── templates
The src
folder contains the source files.
The additional vendor files will be copied from the corresponding node modules after installation.
The results will arrive into the dist
folder.
The src/templates
folder contains mustache
templates,
that may include files from the src/partials
folder.
The src/md
folder may contain markdown
format files,
that will be converted to HTML format and will be placed into the partials
folder
so page templates can be written to envelop these contents.
The src/img
folder contains the sample images, that you should replace with your own photos.
The src/less
folder contains the less
files, that you may customize.
Especially the is important, src/less/variables.less
which contains the most relevant syling parameters.
You can do the following steps:
-
Install the npm modules required by the newly generated application:
cd new_project_name npm install
-
Edit the template and the parameter files according to your needs:
- src/templates/index.html
- src/parameters.yml
-
Change the images under the
src/img
folder. -
Customize the portfolio page (overwrite the
src/templates/portfolio.html
with one of thesrc/templates/portfolio-?-col.html
files). -
Customize blog-home page (overwrite the
src/templates/blog-home.html
with one of thesrc/templates/blog-home-?.html
files). -
Customize the services format in the index.html page (remove the unwanted parts).
-
To create the dist package, run either:
npm run build
or
npm run watch
The build process happens via the gulp utility. If you change the project structure, you may also modify the gulpfile.js as well.
The npm run watch
uses the browser-sync utility, that starts a server too.
With this command, you can immediately view the results in a browser, that will be automatically refreshed,
in case you modify any of the source content, can be found under the src
directory.
The final results will be written into the dist
folder.
You can copy the whole content to the final place of deployment when you are ready.