Local Setup
Prerequisites
-
Download and install Git
This will be used to download the repository -
Download and install Node
This will be used to run the local server. It included thenpmpackage manager -
Follow supabase.md to setup a "Local supabase instance"
Run locally
Clone the repo
git clone https://github.com/ONEARMY/community-platform
Change directory into the cloned repo to run future commands
cd community-platform
Install dependencies
yarn install
Run the platform
yarn start
Module not found
If whilst attempting to run the app a module-not-found (or similar) error appears, it is likely because dependencies have been updated and require install again. Running the yarn install command again should fix.
Error: ENOENT: no such file or directory
If you see an error message suggesting that a particular folder/file could not be installed, there is a chance that the previous command would have installed/fixed anyway and things might just work.
If they don't, then try deleting the node_modules folder in the workspace mentioned in the error message (e.g. ./packages/documentation/node_modules or similar)