Getting Started
This guide will walk you through the process of setting up a local development environment for the website
Prerequisites
A computer that you can install software on
Steps to setup the local development environment
- Install Node.js: https://nodejs.org/en/download/
- Install Yarn:
- Open a terminal
- Run
npm install --global yarn
- Install Git: https://git-scm.com/downloads
- Clone the repository:
- Open a terminal and navigate to the directory you want to clone the repository into
- Run
git clone https://github.com/CICS110/CICS110.github.io.git
- Install dependencies:
- In the same terminal, navigate to the directory you cloned the repository into:
cd CICS110.github.io
- Run
yarn install
in the terminal to install the dependencies
- In the same terminal, navigate to the directory you cloned the repository into:
Steps to run the local development environment
Note: must have the local development environment setup first
- In the terminal, navigate to the directory you cloned the repository into
- Run
yarn start
in the terminal to start the local development environment
This should open a browser window with the website running locally
Search Bar Will Not Work Locally
In the local development environment, the search bar will not work. You can get it to work by first building it then serving the local production build:
yarn build
npx http-server ./build