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
https://steady-lamp.glitch.me/ | |
https://troubled-jam.glitch.me/ |
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
// 1 | |
SELECT * FROM restaurants; | |
// 2 | |
SELECT * FROM restaurants | |
WHERE cuisine = 'Italian'; | |
// 3 | |
SELECT id, name FROM restaurants |
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
db.restaurants.find() | |
db.restaurants. | |
find(). | |
sort({name: 1}). | |
limit(10) | |
var myId = db.restaurants.findOne({}, {_id: true})._id | |
db.restaurants.findOne({_id: myId}) |
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
Goals: | |
The application will allow users to find other Fortnite players to play with. | |
Pass the Thinkful capstone | |
Features: | |
Must: | |
View posts | |
Create Posts |
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
'use strict'; | |
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const {User} = require('./models'); | |
const router = express.Router(); | |
const jsonParser = bodyParser.json(); |
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
Do my users think the app is interesting or valuable? | |
After interviewing users I found that they did enjoy my app and found it useful but they all mentioned that there are many other websites that do this but almost everyone uses Discord servers to find other people to play with. I think that this is because Discord has the most traffic and its very easy to set up a group voice chat after finding players on discord since it is a VOIP app. | |
Did my users use the app as I intended? | |
Did my users encounter any bugs or broken features? | |
Did my users understand how to use the 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
const express = require("express"); | |
const app = express(); | |
app.get("/", (req, res) => { | |
const message = "Hello world"; | |
res.send(message); | |
}); | |
app.listen(process.env.PORT || 8080, () => { | |
console.log(`Your app is listening on port ${process.env.PORT || 8080}`); |
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 postSchema = mongoose.Schema({ | |
title: String, | |
message: String | |
}); | |
postSchema.methods.serialize = function() { | |
return { | |
id: this._id, |
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 app = express(); | |
const mongoose = require("mongoose"); | |
const Post = require("./models"); | |
const { PORT, DATABASE_URL } = require("./config"); | |
app.get("/", (req, res) => { | |
Post.find() | |
.then(posts => { |
OlderNewer