Skip to content

trevorhere/recrootBox

Repository files navigation

recrootBox

Portfolio site template for those new to web development. Step by step video instructions can be found here: 📺

Note:
  • RecrootBox was switched over from React.js to Gatsby.js on 2/20/20
  • The instructions in the video above are geared toward deploying to github pages
  • A new video with up-to-date instructions will be released shortly

Installation

  1. Fork this repository onto your own github account
  2. Clone the repository locally
  3. Make sure you have Node and NPM installed, then run npm i in the newly cloned recrootBox folder
  4. Open recrootBox/src/siteData.js and follow instructions in this file to add your information including your bio, image links, project titles, project links, etc.
  5. Open recrootBot/gatsby-config.js and change the title, description, author, and trackingId (google analytics).

Deploying recrootBox

Previously, I recommended using github pages to host the project. Recently, I've found netlify to be easier to use.

Netlify

  1. Create a new site in netlify.
  2. Link your new netlify site to the recrootBox repo that you forked.
  3. In netlify deploy settings, specify /build as the content directory
  4. In netlify deploy settings, specify npm i && npm run build as the deploy command

deploy_settings

....................................................................................................................

IMPORTANT:

As of 11/6/19, I added a blog to recrootBox. There are some details you need to be aware of if you want to use the blog.

I used github gists for the "back-end" of blog. gists are just code snippets. I used gists because they are easily accessible via an api call, and everyone with a github account has access to them already.

To get an idea for how gists are used, check out the gists that I used for my blog here

Its pretty simple; a gists can contain many files. For each blog post, i create a file within that gist, write the post and style it using github markdown

Blog Post Titles

The only tricky part is the file title name. recrootBox uses these file names for rendering each post. Thus, they need to follow a specific naming construct or the posts won't load.

This is the construct: <post_title><underscore><underscore><month><underscore><day><underscore><year>.md

For example: This_is_my_blog_post!__10_31_19.md

Dont forget the two underscores in between the post title and the date
These characters do wonky things to urls: < > # % { } | \ ^ ~ [ ] so don't use them in your file names

Blog info:

Each gist needs to have the following information formatting exactly as pictured below at the beginning of the file:

See how I've done this for each gist here

siteData.js Settings

let blogName = "MY COOL BLOG";
let renderBlog = true;
let gistUrl = `https://api.github.com/gists/68cc754fb298f3121b5b2b4cfaa754d4`
  • blogName is just the name of your blog. The name is desplayed in several places throughout the app.
  • renderBlog is a boolean that renders the blog if true and doesn't if false, i.e. if you don't want the blog part of recrootBox, just set this to be false.
  • gistUrl is the url of the gist you want to use for your blog.

About

Portfolio site template for new CS students. Demo: https://trevorlane.dev Instructions: https://www.youtube.com/watch?v=tz04HiWaPfc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published