React Interact is a tutorial website to ease the burdon of learning React and other web technologies.
The site is broken down into categories such as React, HTML, CSS, JS, and these categories are broken in modules. The user is free to follow the modules at their own will or follow the topics in the order presented.
git clone https://github.com/CSC-464-Regular-Devs/React-Interact.git
cd React-Interact
npm install
npm install -g gatsby-cli
gatsby develop
Gatsby both builds the site and starts the development server. If you do not have gatsby-cli installed, you can acheive the same by running npm run-script develop
After running, the site should be displayed at http://localhost:8000/.
Content can be contributed in the form of MDX
All MDX content is consolidated in React-Interact/src/MDX
Any files with the extension .mdx in this folder will be interpreted as a page on the site.
An example page would be: React-Interact/src/MDX/tutorials/helloworld.mdx
---
title: Hello World
date: 2019-12-06
theme: react
---
## I have a lot of great content to give
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
In the MDX folder, mdx files page locations on the site are directly tied to their path in the folder.
So this example would be located at `http://localhost:8000/tutorials/helloworld`
At the very top of this example there is frontmatter for the mdx file.
Frontmatter is metadata you put in the file that is used in page generation.
The title will be the page title.
The date will be placed right below the title and the
theme is used to determine the color scheme for the page.
*There should only be one definition for the frontmatter and all fields are unique*Once our markdown example file is created, run "gatsby develop" or "npm run-script develop" The page will now be located at http://localhost:8000/tutorials/helloworld/
Note: use of the tag is not allowable. Since our project is on github pages a url prefix is required that is defined in gatsby-config. Either use a markdown link or the gatsby tag for generating links.
When your content is ready a pull request can be made. Once reviewed and accepted it will go into develop to be merge in with changed made by additional users.