Skip to content

x28project/project-website-template

Repository files navigation

Project Website Template

Project Template Website Project Template Submodule Cypress.io license

A template for automatically generating static "project" websites that showcase media (e.g. albums, games, videos, etc.) in an attractive, yet simple, light-weight, responsive, mobile-friendly way.

Live Example

http://www.x28project.com


Table of Contents


Installation

  1. Use or fork this template.

  2. To install the required dependencies, run:

npm install

Note: There is a postinstall routine that will initialize and update the Project Website Submodule.


Configuration

1. Add HTML data

Modify the webpack.config.html.js file with data specific to the desired website. For example:

  • Title
  • Meta data
  • Logo
  • Tagline
  • Links
  • Copyright

2. Add project data

Modify the webpack.config.projects.js file with project specific data. For example:

  • Album
    • Title
    • Cover Artwork
    • Tracks
    • Embedded SoundCloud Player
    • Year
  • Game
    • Title
    • Links
      • Play Online
      • Download
    • Year
  • Video
    • Title
    • Embedded YouTube Video
    • Year

3. Add favicon and other related images

Note: The viewable area of each template image is marked in gray or black.


Generate website

To generate the full website from the modified configuration, run:

npm run build

Note: All website files will be output into the dist/ directory.

List of CDN dependencies:


Serve locally with http-server

  1. To install http-server globally, run:
npm install --global http-server
  1. To start the server, open a new terminal to this repo and run:
npm run server
  1. To view the website, open: https://localhost:8080

Test with Cypress

To test the website, first serve locally with http-server, then run:

npm run test

Copyright

Copyright (c) 2021 X28 Project


License

MIT

About

Project website template

Resources

License

Stars

Watchers

Forks

Packages

No packages published