Skip to content

My portfolio. Built with Node.js, EJS, SCSS, HTML5, Three.js

Notifications You must be signed in to change notification settings

jfypk/jeff-park.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jeff-park.com

This portfolio is written using Node.js, EJS, HTML, SASS. The blog is written using hexo.js.

Creating a new blog post:

Create a new blog post with:

hexo new "title of blog" 

Generate the static file with:

hexo generate

To deploy to remote sites:

hexo deploy

Creating a new portfolio page:

Edit the server.js

app.get('/path/to/page/URL', function(req, res) {
    res.render('pages/work/nameofEJSfile');
});

Create a corresponding EJS view file under /views/pages/work

sample.ejs

<!-- views/pages/sample.ejs -->

<!DOCTYPE html>
<html lang="en">
<title>Jeff Park - Sample Piece</title>
<head>
    <% include ../../partials/foliohead %>
</head>
<body class="portfolio-container">
    <div class="title-container">
    <h1>Sample Piece</h1>
    <% include ../../partials/navi %>
    </div>
    <% include ../../partials/uc %>
</body>
</html>

Run a local version of the portfolio:

npm install
nodemon server
npm run watch-css

ssh into the console with

ssh jpark@<IP>

Configure additional requests by editing location block at

sudo nano /etc/nginx/sites-available/default

Then check syntax errors and then restart Nginx

sudo nginx -t
sudo systemctl restart nginx

To fuq w/ the server.js file:

pm2 delete X
pm2 start X
pm2 stop X
pm2 restart X

About

My portfolio. Built with Node.js, EJS, SCSS, HTML5, Three.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published