A React-Redux site with bindings to Google Firestore
Since we are deploying multiple applications, this repo is organized as a monorepo using Yarn Workspaces.
-
Install Yarn
-
Install local dependencies
yarn install
Each application lives in their own folder in apps/
:
public
- The public facing siteadmin
- Internal website administrationcommon
- 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