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.gitInstall the pre-commit auto formatter before development.
npm installnpm run setupAlways pull from the GitHub before making any changes.
npm run pullTo commit at all levels, use
npm run git "commit message" nn is the commit level - 0 means only website, 1 means only website and threshold-scientist, 2 means website, threshold-scientist, and threshold.
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.
cd docs/experiment
npm run startcd 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=nameOfTheExperimentTableYou 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).