Vue 3.0
Currently, node version 14.17.0 works best with our viewbooks. The .nvmrc file defines this as the version we are using. To use this, run:
nvm use
First, install Yarn dependencies:
yarn
The following command creates and runs a temporary server to view the site locally.
yarn dev
The command will output the server URL to visit in your browser, ex. http://localhost:3000.
The following command creates the build.
yarn build
The following command creates and runs a temporary python server to view the site in dist
locally.
cd dist
python3 -m http.server 8000
The command will output the server URL to visit in your browser, ex. http://localhost:8000.
git push origin feature_branch
.git push --set-upstream origin feature_branch
.develop
instead of main
and create the pull request.develop
.develop
, you can preview the site at https://viewbook.admissions.uiowa.edu/latest/.develop
into main
.If the commands listed above for local development are not working, delete your node_modules
folder and run yarn install
.