Skip to content

How to Run

Marshall Asch edited this page Jan 8, 2022 · 3 revisions

This document will outline how to download and run this application for development.

Prerequisites

  • Web development
  • Javascript
  • React.js
  • Node.js
  • HTML
  • CSS
  • Docker [optional]

Resources

Cloning the repo

Clone the repository to your local computer:

git clone https://github.com/UoGSOCIS/socis_website.git

Run the app

Download the required dependencies

yarn install

Run the application locally

yarn start

This will start the application on http://localhost:3000/. Use this mode for development.

Build and run using Docker

Build

docker build \
    --build-arg VCS_REF=$(git rev-parse -q --verify HEAD) \
    --build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
    -t socis-web .

Run the application

docker run -p 8080:80 socis-web:latest

This will start the application on http://localhost:8080/. Use this mode for testing and deployment. This mode does not have hot reloading.

Clone this wiki locally