@/all
Notable Changes:
- Change with link thanks to @username
- Change without a link thanks to @username
Add `http://stackoverflow.com/questions/` before the number to generate the link. | |
Once you find an article that shoudl be added to the wiki then add it to https://github.com/FreeCodeCamp/wiki/issues/367 in one of the sections or create a new section if needed. Then remove it from this list. | |
http://stackoverflow.com/questions/11227902 | |
15012542 | |
2669766 | |
388282 | |
950146 | |
1986909 | |
572660 |
@/all
Notable Changes:
Moderation will be done on a as needed basis, meaning when wiki post are flagged or reported.
// ./models/manga.js | |
// Load required packages | |
var mongoose = require('mongoose'); | |
// Define our user schema | |
var MangaSchema = new mongoose.Schema({ | |
title: { | |
type: String, //It has to be a string | |
lowercase: true, // make it lowercase | |
trim: true, // removes trailing white spaces |
// Load required packages | |
var User = require('../models/user'); | |
var dbHelper = require('./dbHelper'); | |
var jwt = require('jsonwebtoken'); // used to create, sign, and verify tokens | |
/* | |
EXPORTING FUNCTIONS | |
Function from the dbHelper.js file. | |
Saves object information to database and returns the apropiated results. | |
*/ |
/*eslint no-console: ["error", { allow: ["warn", "error", "log"] }] */ | |
// server.js | |
'use strict'; | |
// BASE SETUP | |
// ============================================================================= | |
// call the packages we need | |
var express = require('express'); // call express | |
var app = express(); // define our app using express |
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "expect" }]*/ | |
/*global describe it */ | |
var request = require('supertest'); | |
var expect = require('chai').expect; | |
var server = require('../server.js'); | |
server = request.agent('http://localhost:' + process.env.PORT); | |
describe('SAMPLE unit test', function() { | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |