Skip to content

EasyEyes/website

Repository files navigation

EasyEyes Website

Netlify Status

The public website of EasyEyes projects.


Submodule structure.

[website] (this)
  docs
    [experiment] (threshold-scientist, https://github.com/EasyEyes/threshold-scientist)
      [threshold] (https://github.com/EasyEyes/threshold)
        [psychojs] (forked from psychopy/psychojs, https://github.com/EasyEyes/psychojs)

Clone the code to local.

git clone --recurse-submodules https://github.com/EasyEyes/website.git

Install the pre-commit auto formatter before development.

npm install

Setup

npm run setup

Contribute

Always pull from the GitHub before making any changes.

npm run pull

To commit at all levels, use

npm run git "commit message" n

n is the commit level - 0 means only website, 1 means only website and threshold-scientist, 2 means website, threshold-scientist, and threshold.

Threshold Local Development

Running locally

Use netlify dev to run the app locally so that both the client and the Netlify Functions back-end are served together:

netlify dev
  • Client (webpack dev server) runs on port 5500.
  • Back-end (Netlify Functions) runs on port 8888.

Open the client-side URL (http://localhost:5500) in your browser.

Scientist Page

cd docs/experiment
npm run start

Participant Page

cd docs/experiment/threshold
npm run build # Only needed once
npm run examples # Needed every time changes made to the experiment tables
npm run start -- --name=nameOfTheExperimentTable

You don't need to build before committing to GitHub, Netlify will do it for you during the deployment. An auto formatter (Prettier) will format your code during the commit (pre-commit hook).

About

The public website of EasyEyes project.

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors