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 express = require('express'); | |
const helmet = require('helmet'); // 1 yarn add helment || npm i helmet // 2 | |
// import db from './data/db'; | |
const userRoutes = require('./users/userRoutes'); | |
const server = express(); | |
// client -> [error, m1, post, m3] -> [rh1, rh2] | |
function greeter(name) { |
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
function Linkedlist(){ | |
this.head = null; | |
} | |
Linkedlist.prototype.isEmpty = function(){ | |
return this.head === null; | |
}; | |
////////////////////////////////////// | |
Linkedlist.prototype.size = function(){ |
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 mongoose = require('mongoose'); | |
const ObjectId = mongoose.Schema.Types.ObjectId; | |
const Character = mongoose.Schema({ | |
name: { type: String, required: true }, | |
edited: Date, | |
created: Date, | |
gender: String, | |
height: String, | |
hair_color: String, |
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
// /src/App.js | |
import React, { Component } from 'react'; | |
import { Route, withRouter } from 'react-router-dom'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import Signin from './auth/Signin'; | |
import Users from './users/Users'; |
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
// inside __tests__ folder | |
const utilities = require('../index'); | |
describe('default', () => { | |
it('run the tests', () => {}); | |
}); | |
describe('add function', () => { | |
it('should add two numbers', () => { |
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
// inside __tests__ folder | |
const utilities = require('../index'); | |
describe('default', () => { | |
it('run the tests', () => {}); | |
}); | |
describe('add function', () => { | |
it('should add two numbers', () => { |
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
// /.gitignore | |
# See https://help.github.com/ignore-files/ for more about ignoring files. | |
# dependencies | |
/node_modules | |
# testing | |
/coverage |
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 | |
.DS_Store | |
.vscode |
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
5bVdul45Eyd99iulszB8DYGROdgpoHhL nmxCMcAjtchb73FSkCy69A7EPAAoZtbHsMn5zda3p/i5+QOYBS8PFyIEO40eKILV9kq7iK9dsUiv4w== |
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
fugqLHz2qPTQZft2PPGOW3AJ4FBSwETewiuEPBX3fwI6NU1U8L3VReheIqkxYwDi/r8LqDkRmY1zEtktEUk80w== |
OlderNewer