Skip to content

Latest commit

 

History

History
executable file
·
30 lines (23 loc) · 1.3 KB

File metadata and controls

executable file
·
30 lines (23 loc) · 1.3 KB

Work form

Basic work request form for use by graphic design department.

Contents

Single page form with basic file upload function. Sends content via PHP mail.

Installation

Requirements

  • NodeJS
  • Bower
  • Git (Optional)

Steps

  1. Install NodeJS
  2. Install Bower
  3. Clone/checkout https://github.com/Nukefactory/work-form.git or download the .zip
  4. Install dependencies:
    • Run '$ npm install' from working directory
    • Run '$ bower install' from working directory
  5. Run gulp to build: '$ gulp'

Edits

Subfolders are labelled in 'src'. HTML pages are built using pug but can be substituted with standard HTML if preferred (standard HTML will still copy to dist on build).

Gotchas

'dist' folder will build and run browsersync for local building, but must be uploaded/run from server with PHP available in order to receive completed form contents. Think LAMP/MAMP et al if you don't have a server handy. First couple of lines in 'send-mail.php' need to be updated with whatever email you want to receive at/send from before anything will arrive.

Have at it

Feel free to hack and build upon as needed. Pull requests for improvements welcomed. Hope it can be of some use.