Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44cee349e9 | ||
|
|
2bd4b1e16e | ||
|
|
7f9e594e9b | ||
|
|
1f9416e0bd | ||
|
|
e4a6c7ef36 | ||
|
|
c1f3aa126b
|
||
|
|
f3ee6d091e
|
||
|
|
a143dc439b |
No files matched your search
@@ -1,2 +1,4 @@
|
|||||||
mongoURI='mongodb://localhost:27017/'
|
mongoURI='mongodb://localhost:27017/'
|
||||||
database='nameOfDatabase'
|
database='nameOfDatabase'
|
||||||
|
PORT=8000
|
||||||
|
|
||||||
@@ -24,11 +24,27 @@ Example:
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
***Please check back later.***
|
1. **Clone the repository:**
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/JoaquinPar/2800-202510-BBY14.git
|
||||||
|
cd 2800-202510-BBY14
|
||||||
|
```
|
||||||
|
|
||||||
1. ...
|
2. **Install dependencies:**
|
||||||
2. ...
|
```bash
|
||||||
3. ...
|
npm install
|
||||||
|
```
|
||||||
|
This will install Express, express-session, EJS, dotenv, and any other required packages listed in `package.json`.
|
||||||
|
|
||||||
|
3. **Create and configure the environment file:**
|
||||||
|
- Create a file named `.env` in the root directory of the project.
|
||||||
|
- Add the necessary environment variables to this file.
|
||||||
|
|
||||||
|
4. **Run the application:**
|
||||||
|
```bash
|
||||||
|
node app.js
|
||||||
|
```
|
||||||
|
The application should now be running, typically on `http://localhost:3000` (or the port specified in your `.env` file).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -37,7 +53,6 @@ Example:
|
|||||||
```
|
```
|
||||||
retirementCalculator/
|
retirementCalculator/
|
||||||
├── src/
|
├── src/
|
||||||
| ├── app.js
|
|
||||||
│ ├── views/
|
│ ├── views/
|
||||||
│ ├── public/
|
│ ├── public/
|
||||||
| | ├── css/
|
| | ├── css/
|
||||||
@@ -45,6 +60,7 @@ retirementCalculator/
|
|||||||
| | ├── images/
|
| | ├── images/
|
||||||
| | └── scripts/
|
| | └── scripts/
|
||||||
│ └── util/
|
│ └── util/
|
||||||
|
├── app.js
|
||||||
├── .env.example
|
├── .env.example
|
||||||
├── .gitignore
|
├── .gitignore
|
||||||
├── LICENSE
|
├── LICENSE
|
||||||
@@ -62,6 +78,7 @@ retirementCalculator/
|
|||||||
- **[Mitchell Schaeffer](https://github.com/knighthawk4227)** - BCIT CST Student with a passion for technology.
|
- **[Mitchell Schaeffer](https://github.com/knighthawk4227)** - BCIT CST Student with a passion for technology.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
## more details to come...
|
||||||
|
|
||||||
## Limitations and Future Work
|
## Limitations and Future Work
|
||||||
### Limitations
|
### Limitations
|
||||||
|
|||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
Team Name: BBY-14
|
||||||
|
Team Members:
|
||||||
|
<ul>
|
||||||
|
<li> Joaquin Paredes </li>
|
||||||
|
<li> Nicolas Agostini </li>
|
||||||
|
<li> Mitchell Schaeffer </li>
|
||||||
|
<li> Braeden Sowinski </li>
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
+6
-2
@@ -1,11 +1,15 @@
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const dotenv = require('dotenv');
|
||||||
|
|
||||||
|
dotenv.config();
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 8000;
|
|
||||||
|
const port = process.env.PORT || 3000;
|
||||||
|
|
||||||
app.set('view engine', 'ejs');
|
app.set('view engine', 'ejs');
|
||||||
app.set('views',path.join(__dirname, 'views'));
|
app.set('views', path.join(__dirname, '/src/views'));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ROUTINGS
|
ROUTINGS
|
||||||
Generated
+12
-1
@@ -9,6 +9,7 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"dotenv": "^16.5.0",
|
||||||
"ejs": "^3.1.10",
|
"ejs": "^3.1.10",
|
||||||
"express": "^5.1.0"
|
"express": "^5.1.0"
|
||||||
},
|
},
|
||||||
@@ -315,6 +316,17 @@
|
|||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/dotenv": {
|
||||||
|
"version": "16.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz",
|
||||||
|
"integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://dotenvx.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/dunder-proto": {
|
"node_modules/dunder-proto": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||||
@@ -339,7 +351,6 @@
|
|||||||
"version": "3.1.10",
|
"version": "3.1.10",
|
||||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||||
"integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
|
"integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
|
||||||
"license": "Apache-2.0",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jake": "^10.8.5"
|
"jake": "^10.8.5"
|
||||||
},
|
},
|
||||||
|
|||||||
+4
-3
@@ -2,10 +2,10 @@
|
|||||||
"name": "retirementcalculator",
|
"name": "retirementcalculator",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Retirement Calculator",
|
"description": "Retirement Calculator",
|
||||||
"main": "./src/app.js",
|
"main": "app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./src/app.js",
|
"start": "node app.js",
|
||||||
"dev": "nodemon ./src/app.js"
|
"dev": "nodemon app.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/JoaquinPar/2800-202510-BBY14#readme",
|
"homepage": "https://github.com/JoaquinPar/2800-202510-BBY14#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"dotenv": "^16.5.0",
|
||||||
"ejs": "^3.1.10",
|
"ejs": "^3.1.10",
|
||||||
"express": "^5.1.0"
|
"express": "^5.1.0"
|
||||||
},
|
},
|
||||||
|
|||||||
+50
-9
@@ -1,12 +1,53 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
|
||||||
<title></title>
|
<head>
|
||||||
</head>
|
<meta charset="UTF-8">
|
||||||
<body>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<h1>Welcome!</h1>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<form method="get" action="/signup">
|
<title>Login Page</title>
|
||||||
<button type="submit">signup</button>
|
<link rel="stylesheet" href="/css/style.css" <link rel="stylesheet" href="/css/style.css">
|
||||||
|
<link rel="stylesheet" href="../public/css/style.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@3.3.2/dist/tailwind.min.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="flex justify-center items-center h-screen bg-gray-700">
|
||||||
|
<form action="/login" method="POST">
|
||||||
|
<div class="w-96 p-6 shadow-1g bg-white rounded-md">
|
||||||
|
<h1 class="text-3xl block text-center font-semibold"> Login </h1>
|
||||||
|
<hr class="mt-3">
|
||||||
|
<div class="mt-3">
|
||||||
|
<label for="email" class="block text-base mb-2">Email</label>
|
||||||
|
<input type="text" id="email" name="email"
|
||||||
|
class="border focus:border-gray-600 w-full text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||||
|
placeholder="Enter Email" />
|
||||||
|
</div>
|
||||||
|
<div class="mt-3">
|
||||||
|
<label for="password" class="block text-base mb-2">Password</label>
|
||||||
|
<input type="password" id="password" name="password"
|
||||||
|
class="border focus:border-gray-600 w-full text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||||
|
placeholder="Enter Password" />
|
||||||
|
</div>
|
||||||
|
<div class="text-red-800 font-bold hidden" id="forgor"> Your Password is incorrect...</div>
|
||||||
|
<div class="mt-3 flex justify-between items-center">
|
||||||
|
<div>
|
||||||
|
<input type="checkbox">
|
||||||
|
<label>Remember me</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="#" class="text-indigo-600 font-semibold">Forgot Password? </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-5">
|
||||||
|
<button type="submit"
|
||||||
|
class="border-2 border-gray-600 bg-blue-600 text-white py-1 w-full rounded-md hover:bg-transparent hover:text-indigo-700 font-semibold">Login</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</div>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
+55
-6
@@ -1,9 +1,58 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Signup</title>
|
||||||
|
<link rel="stylesheet" href="/css/style.css" <link rel="stylesheet" href="/css/style.css">
|
||||||
|
<link rel="stylesheet" href="../public/css/style.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
|
||||||
|
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
|
||||||
|
crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="flex justify-center items-center h-screen bg-gray-700">
|
||||||
|
<form action="/login" method="POST">
|
||||||
|
<div class="w-96 p-6 shadow-1g bg-white rounded-md">
|
||||||
|
<h1 class="text-3xl block text-center font-semibold"> Signup </h1>
|
||||||
|
<hr class="mt-3">
|
||||||
|
<div class="mt-3">
|
||||||
|
<label for="email" class="block text-base mb-2">Email</label>
|
||||||
|
<input type="text" id="email" name="email"
|
||||||
|
class="border focus:border-gray-600 w-full text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||||
|
placeholder="Enter Email" />
|
||||||
|
</div>
|
||||||
|
<div class="mt-3">
|
||||||
|
<label for="password" class="block text-base mb-2">Password</label>
|
||||||
|
<input type="password" id="password" name="password"
|
||||||
|
class="border focus:border-gray-600 w-full text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||||
|
placeholder="Enter Password" />
|
||||||
|
<label for="password" class="block text-base mb-2 mt-3">Re-type Password</label>
|
||||||
|
<input type="password" id="repassword" name="password"
|
||||||
|
class="border focus:border-gray-600 w-full text-base px-2 py-1 focus:outline-none focus:ring-0 "
|
||||||
|
placeholder="Enter Password" />
|
||||||
|
</div>
|
||||||
|
<div class="text-red-800 font-bold hidden" id="forgor"> Your Password is incorrect...</div>
|
||||||
|
<div class="mt-3 flex justify-between items-center">
|
||||||
|
<div>
|
||||||
|
<input type="checkbox">
|
||||||
|
<label>Remember me</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="#" class="text-indigo-600 font-semibold">Forgot Password? </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-5">
|
||||||
|
<button type="submit"
|
||||||
|
class="border-2 border-gray-600 bg-blue-600 text-white py-1 w-full rounded-md hover:bg-transparent hover:text-indigo-700 font-semibold">Login</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>SIGNUP</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user