Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finished hw #6

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Commits 6 and 7 - set up serving of static files, styled app
  • Loading branch information
LehmanBrother committed Oct 10, 2018

Verified

This commit was signed with the committer’s verified signature.
QubitPi Jiaqi Liu |【烬火】胡桃
commit b2c331dee729b67e7a5a549573a0f135ce82bb39
3 changes: 3 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
background-color: cornsilk;
}
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ app.listen(port, function() {

app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(express.static('public'));

//index route
app.get('/pokemon', (req,res) => {
1 change: 1 addition & 0 deletions views/index.ejs
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
<head>
<title>Pokemon Index</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/style.css">
<style>
li {font-family: roboto;}
</style>