SoftStack Factory's website showcases our history as a coding school, featuring the classes we offered, and highlights the organizations we've supported in our community initiatives. This site is built with React, Gatsby, and Material-UI, and is hosted on GitHub Pages.
Make sure you have the following installed:
- Node.js (version 14 or later recommended)
- npm (comes with Node.js) or yarn
- Gatsby CLI (optional, for additional commands)
- 
Clone the Repository: git clone https://github.com/digital-underground/ssf.git cd ssf
- 
Install Dependencies: Use npm or yarn to install the required dependencies: npm install 
- 
Material-UI Setup: This project utilizes Material-UI for consistent design components. If you need to install it again or add new Material-UI libraries, use: npm install @mui/material @emotion/react @emotion/styled 
To run the site locally with hot-reloading enabled:
npm run developThis command will start a local development server at http://localhost:8000.
Material-UI provides pre-designed components and themes. Here’s a quick guide on using Material-UI components:
- 
Import Components: Import Material-UI components as needed in your pages or components: import Button from '@mui/material/Button'; 
- 
Custom Themes: You can customize the default Material-UI theme by wrapping your application in a theme provider. Add your theme in gatsby-browser.jsorgatsby-ssr.jsfor server-side rendering support:import { ThemeProvider, createTheme } from '@mui/material/styles'; const theme = createTheme({ palette: { primary: { main: '#1976d2' }, secondary: { main: '#dc004e' }, }, }); // Wrap your app with the ThemeProvider 
- 
Styling with Material-UI: You can use the sxprop in Material-UI components for styling, or create custom styles withmakeStylesif you need advanced styling.
This project is set up for deployment to GitHub Pages. Follow these steps to deploy your changes:
- 
Build and Deploy: To build your site and push it to the gh-pagesbranch, use:npm run deploy This command builds your Gatsby site and pushes the static files to the gh-pagesbranch.
- 
Setting GitHub Pages: - Go to your GitHub repository.
- Under Settings > Pages, set the branch to gh-pagesfor deployment.
 
- 
Check Deployment: Your site should be live at https://your-username.github.io/ssf.
- Linting and Formatting: Consider using ESLint and Prettier for consistent code quality. You can set up custom scripts to lint and format code.
- Environment Variables: Gatsby can use .envfiles. If needed, set environment variables in.env.developmentor.env.production.
For questions or support, please contact the SoftStack Factory team.