Commit f6292b43 authored by Wes Li (wel191)'s avatar Wes Li (wel191)
Browse files
parents 38840d73 a1fb1200
......@@ -11,38 +11,63 @@ nodejs, sqlite3, express, ejs, nodemailer
```
### Installing
Initially, download and install nodejs
How to run the application:
```
https://nodejs.org/en/download/
```
### How to Run
Clone the git branch
Command line tool(s) must be used: Windows PowerShell or Mac Terminal
Note: Must run the command line tool(s) as an administrator or Sudo in Mac OS
**Cloning the Project**:
Clone the git **master** branch using the command line tool(s)
```
git clone https://git.cs.usask.ca/yol474/cmpt370-fantastic-4.git
```
Download and install nodejs
Or use the GitHub Desktop to clone a repository to a designated path by entering the below URL
```
https://nodejs.org/en/download/
https://git.cs.usask.ca/yol474/cmpt370-fantastic-4.git
```
Navigate to the **air370proj** folder that contains **app.js**
Navigate to the **cmpt370-fantastic-4** folder that contains **app.js** in the the command line tool(s)
```
cmpt370-fantastic-4\air370proj\AirPararies370proj\air370proj
cmpt370-fantastic-4/
```
Use npm to install the following requirements.
**Setting Up the Required Node Modules**:
**First**, use npm to create an empty package
```
npm init
```
Keep pressing "Enter" until you see "Is this OK? (yes)"
Enter "yes" to continue
**Second**, use npm to install the following requirements
```
npm i sqlite3
npm i express
npm i ejs
npm i nodemailer
```
Note: if the warning "Permission Denied" is shown, has to re-run command line tool(s)
as an administrator or Sudo in Mac Os as indicated previously and repeat the above steps
Run app.js using command line
**To Start the Application**:
Run **app.js** using command line
```
node app.js
......@@ -50,6 +75,8 @@ node app.js
Application will be live on port 2020
Enter below URL into your browser, **Google Chrome** recommended
```
localhost:2020/
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment