This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Dashboard.php'); ?> | |
<?php | |
$Dashboard = new Dashboard(); | |
$Response = []; | |
$active = $Dashboard->active; | |
$News = $Dashboard->getNews(); | |
?> | |
<?php require('./nav.php'); ?> | |
<main role="main" class="container"> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Login.php'); ?> | |
<?php | |
$Login = new Login(); | |
$Response = []; | |
$active = $Login->active; | |
if (isset($_POST) && count($_POST) > 0) $Response = $Login->login($_POST); | |
?> | |
<?php require('./nav.php'); ?> | |
<main role="main" class="container"> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Logout.php'); ?> | |
<?php new Logout(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php require_once('./controller/Register.php'); ?> | |
<?php | |
$Register = new Register(); | |
$Response = []; | |
$active = $Register->active; | |
if (isset($_POST) && count($_POST) > 0) $Response = $Register->register($_POST); | |
?> | |
<?php require('./nav.php'); ?> | |
<main role="main" class="container"> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define("BASE_URL", 'http://localhost/' . basename(__DIR__) . '/'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = require('lodash'); | |
/****************************************************************/ | |
/************ Custom Module Imports *********************/ | |
/****************************************************************/ | |
const Controller = require('./Controller'); | |
const ContinentModel = require('../model/ContinentModel'); | |
class ContinentController extends Controller { | |
constructor() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "node-cli-app", | |
"version": "1.0.0", | |
"description": "A cli app in node js for getting details about the weather.", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": { | |
"type": "git", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Node Modules.... | |
const Yargs = require('yargs'); | |
//Custom Modules.... | |
const Notes = require('./app/Notes'); | |
const Weather = require('./app/Weather'); | |
//App Initialization... | |
const YargsArgV = Yargs | |
.command('add', 'Adds A New Note', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { MongoClient } = require('mongodb'); | |
const _ = require('lodash'); | |
class Notes { | |
constructor() { } | |
// Create A New Mongo Connection... | |
async createConnection() { | |
// Mongo Config || Constants..... | |
const Url = 'mongodb://localhost:27017'; |