/NTUEECourseMap

A course map website for NTUEE students.

Primary LanguageJavaScript

NTUEE Course Map

About

A course map for NTUEE students with Gatsby & Notion

Plugins

With Gatsby offering a plugin-rich ecosystem, there are a few key plugins that make this project possible.

Project Structure

  • Site-level configuration is stored in config.json so it can be exposed to Forestry. This file is loaded in the gatsby-config.js to configure Gatsby and all it to be accessible via siteMetaData in your graphql queries.
  • Access any of Gatsby's browser api's via the gatsby-browser.js, or load global styles etc.
  • Add and access plugin options or siteMetaData via gatsby-config.js
  • Access Gatsby's node api's via gatsby-node.js. This is where the creation of new blog pages or nodes is handled.
  • Edit styles via src/styles/...
  • content/contains all your markdown blog posts, images & data files (e.g. authors list, info page data).
  • src/pages is a very important and required directory for Gatsby. This is where all your pages for the site live.
  • Blog posts are built from a template that can be accessed at src/templates.
  • The pages & template are comprised of components from src/components.

Development

  1. use node v16.20.2
$ nvm install 16.20.2
$ nvm use 16.20.2
  1. install package
$ yarn install
  1. build
$ yarn build
  1. dev
$ yarn dev