Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jordan Liao (yol474)
CMPT370-Fantastic 4
Commits
f6292b43
Commit
f6292b43
authored
Apr 06, 2020
by
Wes Li (wel191)
Browse files
Merge branch 'master' of
https://git.cs.usask.ca/yol474/cmpt370-fantastic-4
parents
38840d73
a1fb1200
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
f6292b43
...
...
@@ -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/
```
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment