This file contains hidden or 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
module.exports = [{ | |
mode: 'development', | |
entry: './app/main.ts', | |
target: 'electron-main', | |
devtool: 'source-map', | |
module: { | |
rules: [{ | |
test: /\.(?:tsx|ts)$/, | |
include: /app/, | |
use: [{ |
This file contains hidden or 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
.put(authenticate.verifyUser, (req, res, next) => { | |
Campsite.findById(req.params.campsiteId) | |
.then(campsite => { | |
if (campsite && campsite.comments.id(req.params.commentId)) { | |
console.log(`Comment author: ${campsite.comments.id(req.params.commentId).author}`); | |
console.log(`Auth user: ${req.user}`); | |
if (req.user._id.equals(campsite.comments.id(req.params.commentId).author)) { | |
if (req.body.rating) { | |
campsite.comments.id(req.params.commentId).rating = req.body.rating; | |
} |
This file contains hidden or 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 router = express.Router(); | |
router.route("/") | |
.get((req, res) => { | |
res.json({ | |
message: 'API Members - 👋🌎🌍🌏' | |
}); | |
}); |
This file contains hidden or 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 exampleRouter = require('./exampleRouter'); | |
const membersRouter = require('./membersRouter'); | |
const router = express.Router() | |
/** | |
* main api endpoint | |
**/ | |
router.route('/') |
This file contains hidden or 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
{ | |
"name": "mongo-nucamp", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Week 3 - Workshop (Color game)</title> | |
<style> | |
body { | |
font-family: Verdana, Arial, sans-serif; | |
} |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Color Guessing Game</title> | |
</head> | |
<body> | |
<h1>Color Guessing Game</h1> | |
<button type="button" onclick="runGame()">Start Game</button> | |
<script> |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Web App Name</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or 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
@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off | |
:: ---------------------- | |
:: KUDU Deployment Script | |
:: Version: 1.0.4 | |
:: ---------------------- | |
:: Prerequisites | |
:: ------------- |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Survey Form</title> | |
</head> | |
<body> | |
<h1>Survey</h1> | |
<form action="https://us-central1-nucamp-production.cloudfunctions.net/post/formdata" method="post"> | |
<fieldset> |