Skip to content

urfonline/frontend

Repository files navigation

frontend

for urfonline.com

A TypeScript React application with Emotion-based styling.

Getting started

This will you get the frontend application running on your machine for development.

Prerequisites

You'll need Node.js, and the package manager Yarn.

It's recommend to use nvm. This will allow you to use multiple versions of Node.js on your machine.

Running instructions

$ git clone [email protected]:urfonline/frontend.git
$ cd frontend
$ yarn prep
$ yarn serve

This will start the dev server on port 8080: http://localhost:8080.

Commands

yarn prep

This runs any required scripts before a build can take place.

Currently it:

  • runs scripts/getFragmentTypes.js; getting graphql schema data from the production server

yarn serve

Starts a development server on port 8080: http://localhost:8080.

yarn format

Runs Prettier to deterministically format all source files.

yarn test

Runs all tests via Jest.

yarn prod

The entire production build.

  • Gets fragmentTypes
  • Builds
  • Generates light static render files