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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> |
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
if [ -d "project" ]; then | |
rm -rf project | |
fi | |
mkdir project | |
cd project | |
touch index.html style.css README.md | |
echo '<link rel="stylesheet" href="styles.css"><h1>Hello World</h1>' > index.html | |
echo "h1{color:red; font-family: sans-serif; text-decoration: underline;}" > styles.css | |
echo "Hello World!" > README.md |
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 charset="UTF-8"> | |
<title>Puppies!</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> |
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 class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | |
<title></title> | |
<meta content="" name="description"> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<link charset="utf-8" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" media= | |
"screen" rel="stylesheet" title="no title"> |
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 class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | |
<title></title> | |
<meta content="" name="description"> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<link charset="utf-8" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" media= | |
"screen" rel="stylesheet" title="no title"> |
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
{ | |
"development": { | |
"username": "YOUR-USERNAME", | |
"password": "YOUR-PASSWORD", | |
"database": "League-Spx", | |
"host": "127.0.0.1", | |
"dialect": "postgres" | |
}, | |
"test": { | |
"username": "YOUR-USERNAME", |
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
"scripts": { | |
"test": "cross-env NODE_ENV=test jest --testTimeout=10000", | |
"test:watch": "jest --watch", | |
"start": "nodemon app.js", | |
"db:reset": "npx sequelize-cli db:drop && npx sequelize-cli db:create && npx sequelize-cli db:migrate && npx sequelize-cli db:seed:all", | |
"deploy": "git push heroku main", | |
"readme": "git add . && git commit -m 'updated readme' && git push", | |
"createdb": " sequelize db:create", | |
"dropdb": "sequelize db:drop", |
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 { | |
Model | |
} = require('sequelize'); | |
module.exports = (sequelize, DataTypes) => { | |
class League extends Model { | |
static associate(models) {} | |
}; | |
League.init({ | |
name: DataTypes.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
function getLeagues(Sequelize){ | |
return [ | |
// Santa Monica, Venice, Ect | |
{ | |
name: "South Bay Youth Sports", | |
email: "southbay@gmail.com", | |
location: Sequelize.fn('ST_GeomFromText', 'POINT(-118.48882047444324 34.02549682312539)', 4326), | |
price: 1000, | |
createdAt: new Date(), |
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 config = require(__dirname + '/../config/config.json')[env]; // modify here |
OlderNewer