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
FROM node:10 AS builder | |
WORKDIR /app | |
COPY ./package.json ./ | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
FROM node:10 | |
WORKDIR /app |
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
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Simple Transactional Email</title> | |
<style> | |
/* ------------------------------------- | |
GLOBAL RESETS | |
------------------------------------- */ |
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 User = require("../model/User") | |
const emailtemplates = require('../utils/email-template') | |
const sgMail = require('@sendgrid/mail') | |
// | |
// ─── CREATE METHODS ───────────────────────────────────────────────────────────── | |
// | |
exports.createUser = (req, res, next) => { |
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 httpMocks = require('node-mocks-http') | |
const expect = require('expect') | |
const mongoose = require('mongoose') | |
const { parse } = require('node-html-parser'); | |
const userController = require('./user.controller') | |
const dotenv = require('dotenv').config(); | |
const { MailSlurp } = require('mailslurp-client') | |
const User = require('../model/User') | |
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
// | |
// ──────────────────────────────────────────────────────────────────────────── I ────────── | |
// :::::: U S E R M O N G O D B M O D E L : : : : : : : : | |
// ────────────────────────────────────────────────────────────────────────────────────── | |
/******************************************************************************************** | |
* | |
* Information for stored in the document include; | |
* Name, | |
* Email, | |
* Password |
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
"devDependencies": { | |
"dotenv": "^8.2.0", | |
"expect": "^24.9.0", | |
"jest": "^24.8.0", | |
"mailslurp-client": "^6.5.0", | |
"node-html-parser": "^1.1.16", | |
"node-mocks-http": "^1.7.6" | |
}, | |
"dependencies": { | |
"@sendgrid/mail": "^6.4.0", |
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
import { Component, OnInit } from '@angular/core'; | |
import { UserService } from './user.services'; | |
import { trigger } from '@angular/animations'; | |
import { fadeIn } from '../animation/fadeIn'; | |
@Component({ | |
selector: 'app-user', | |
templateUrl: './user.component.html', | |
styleUrls: ['./user.component.css'], | |
providers: [UserService], |
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
import { style, animate, transition } from '@angular/animations'; | |
export function fadeIn(){ | |
return [ | |
transition(':enter', [ | |
style({opacity: 0}), | |
animate('400ms ease-in', style({opacity: 1})) | |
]) | |
]; | |
} |