This is a Vue started template designed to make it easy to get started with breadboard.
- breadboard - Install the Breadboard software
- nodejs/npm - Install NodeJS and the package manager NPM (usually this is automatically installed with NodeJS)
- Make sure all prerequisites are installed
- Follow the steps in breadboard to setup and start your server
- Create a new experiment using the "+" button in breadboard
- Give that process a few seconds to complete, then switch to "File Mode" using the button near the experiment name in breadboard
- A directory will be created inside the
devdirectory of your breadboard server. Take note of the name of this directory later use.
- A directory will be created inside the
- Download this repository
- With GIT:
git clone https://github.com/human-nature-lab/breadboard-v2.4-default.git - Alternatively use the Code -> Download ZIP button in Github
- With GIT:
- Install dependencies:
npm install - Configure the environment
- Copy
.env.defaultto a file called.envin the same directory:cp .env.default .env - Change the variables in
.envfor your environmentBREADBOARD_ROOTis the relative or absolute path to the location of your breadboard serverEXPERIMENT_ROOTis the relative path from your breadboard server to the experiment directory created in step 3 of "Configure Breadboard". Usually this is looks likedev/{experiment name_2345}PUBLIC_ROOTthe name of the folder to store generated client files. It's your decision what to call this directory, but it must start withgenerated. Usually it would be something likegenerated/{experiment name}
- Copy
- Start the dev server:
npm run serve- Now all changes made to this directory will show up in breadboard and changes in the "backend" directory will be synced with your breadboard experiment
- Create a new "Experiment Instance" in your breadboard server
- Open the client login page from the "Experiment Instances" module in breadboard
- Now changes made to code in this directory will automatically update in your web browser
Deleting/renaming files in the backend directory will NOT delete or rename files in the dev/{experiment} directory within your breadboard server. They will need to be deleted/renamed manually. However, new files and changes to the code are handled automatically.