Skip to content

Instantly share code, notes, and snippets.

Avatar
🇳🇬
I am that software developer that you cannot sideline. I am <harrywonder/>

Ilori stephen harryWonder

🇳🇬
I am that software developer that you cannot sideline. I am <harrywonder/>
View GitHub Profile
@harryWonder
harryWonder / Validator.js
Created Jun 10, 2021
LD NodeJS & Nginx Base Validator
View Validator.js
/**
* This is the base validator class. All other validator classes extends this class thus sharing resuable methods.
*
* @author Ilori Stephen A <stephenilori458@gmail.com>
* @returns {Object}
* @name Validator
* @param {Null}
*
*/
@harryWonder
harryWonder / Users.js
Created Jun 10, 2021
LD NodeJS & Nginx Users Model
View Users.js
/* Base Model & Mongoose ORM */
const Mongoose = require('mongoose');
/**
* This Class contains the schema required to model a user collection. It also contains reusable methods imported from the mongoose library.
*
* @author Ilori Stephen A
* @returns {Object}
* @name Signup
* @alias Register
@harryWonder
harryWonder / Newsletters.js
Created Jun 10, 2021
LD NodeJS & Nginx Newsletter Model
View Newsletters.js
/* Base Model & Mongoose ORM */
const Mongoose = require('mongoose');
/**
* This Class contains the schema required to model a user collection. It also contains reusable methods imported from the mongoose library.
*
* @author Ilori Stephen A
* @returns {Object}
* @name Signup
* @alias Register
@harryWonder
harryWonder / .env
Created Jun 10, 2021
LD NodeJS & Nginx Demo ENV File
View .env
#Application Configurations
APP_KEY=
APP_NAME=Martian_Mongodb
APP_VERSION=1.0.0
APP_URL=http://martian_mongo_flavour
APP_PORT=4400
APP_ENV=development
NODE_ENV=development
#Database Configurations
@harryWonder
harryWonder / composer.json
Created Oct 26, 2020
Production composer.json
View composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
@harryWonder
harryWonder / Package.json
Created Oct 26, 2020
Production Package.json
View Package.json
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
@harryWonder
harryWonder / welcome.blade.php
Created Oct 26, 2020
This is where our Vuejs code gets hooked into the DOM because by default, this file is rendered.
View welcome.blade.php
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name', 'Ld-Talk') }}</title>
<meta name="application-name" content="{{ config('app.name', 'Ld-Talk') }}">
<!-- Fonts -->
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<!-- Icons -->
@harryWonder
harryWonder / app.js
Created Oct 26, 2020
The Base Engine for our ld-fullstack application.
View app.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
window.Vue = require('vue');
// Imports....
import VueRouter from 'vue-router';
@harryWonder
harryWonder / index.js
Created Oct 26, 2020
The router file for the ld-fullstack blog
View index.js
import Welcome from '../views/Welcome';
import Dashboard from '../views/Dashboard';
export default [
{ path: '/', alias: '', name: 'Welcome', component: Welcome },
{ path: '/home', alias: '/dashboard', name: 'Dashboard', component: Dashboard },
];
@harryWonder
harryWonder / Dashboard.vue
Created Oct 26, 2020
This file is responsible for loading our Dashboard Component before it is rendered into the DOM.
View Dashboard.vue
<template>
<main>
<DashboardComponent></DashboardComponent>
</main>
</template>
<script type="text/javascript">
import DashboardComponent from '../components/DashboardComponent';
export default {
components: {