Skip to content

tumido/malenovska

Repository files navigation

Malenovska React site

A React-Redux site with bindings to Google Firestore

Developer Setup

Since we are deploying multiple applications, this repo is organized as a monorepo using Yarn Workspaces.

  1. Install Yarn

  2. Install local dependencies

    yarn install

Each application lives in their own folder in apps/:

  • public - The public facing site
  • admin - Internal website administration
  • common - Shared code and assets library

To manage application locally use:

# Let's use the public app for example:

# Start a devel server with hotplugging
yarn workspace @malenovska/public start

# Build dist
yarn workspace @malenovska/public build

# Perform build and then start the prod server
yarn workspace @malenovska/public start:prod

# Deploy single application
yarn workspace @malenovska/public deploy

If you desire manage all the applications at once, use:

# Build and deploy
yarn deploy

# Start dev servers in parallel
yarn start