Skip to content

Instantly share code, notes, and snippets.

View harryWonder's full-sized 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 June 10, 2021 16:01
LD NodeJS & Nginx Base Validator
/**
* 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 June 10, 2021 15:41
LD NodeJS & Nginx Users Model
/* 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 June 10, 2021 15:39
LD NodeJS & Nginx Newsletter Model
/* 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 June 10, 2021 15:10
LD NodeJS & Nginx Demo ENV File
#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 October 26, 2020 15:19
Production composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
@harryWonder
harryWonder / Package.json
Created October 26, 2020 15:16
Production 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 October 26, 2020 10:28
This is where our Vuejs code gets hooked into the DOM because by default, this file is rendered.
<!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 October 26, 2020 10:16
The Base Engine for our ld-fullstack application.
/**
* 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 October 26, 2020 10:12
The router file for the ld-fullstack blog
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 October 26, 2020 10:06
This file is responsible for loading our Dashboard Component before it is rendered into the DOM.
<template>
<main>
<DashboardComponent></DashboardComponent>
</main>
</template>
<script type="text/javascript">
import DashboardComponent from '../components/DashboardComponent';
export default {
components: {