Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

max-cotton/cmp-4011a-group-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js

CMP-4011A Web-Based Programming Assessment

Website designed and developed for a client specification as part of a group web development project.

Installation

  1. Clone the Repository with:

    • git clone https://github.com/mcttn22/cmp-4011a-group-project.git
      
    • Or by downloading as a ZIP file
  2. Enter the project directory with:

    • cd cmp-4011a-group-project
      
  3. Install dependencies with:

    • npm install
      
  4. Create server keys and certificate with:

    • openssl req -x509 -newkey rsa:2048 -keyout keytmp.pem -out cert.pem -days 365 -nodes;
      openssl rsa -in keytmp.pem -out key.pem;
      
    • You will then be prompted to fill in information for the certificate, see the below demo: OpenSSL Demo
  5. Add .env file with following contents:

    • PORT=8000
      EMAIL={Sender Gmail address}
      APP_PASSWORD={App password for Gmail address}
      

Usage

Start web server with:

  • npm start
    
  • Website will then be hosted at https://localhost:8000 Note: You will have to click through some options to accept the risk that were self certificated

Can test form handling with:

  • curl -X POST https://localhost:8000/ -d "email={Gmail address}@gmail.com"
    

Development

Start web server with nodemon with:

  • npm run dev
    

About

CMP-4011A Web-Based Programming Assessment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •