This repository is the frontend for uobtheatre.com, the Shows and Events platform operated by Bristol STA for use by Bristol SU socieities.
If you are new to programming and/or the repository, we recommend you take a look at our Beginners Guide
yarn dev
http://localhost:3000
in your browserYou can now edit the project files, and the browser will reload the page automatically.
You can run yarn lint [--fix]
to lint and fix files.
By default, you won't be able to test out payments via Square until you add the sandbox Square access token to the env file at
.devcontainer/.env
and rebuild the docker container (F1 > Rebuild Container). You will need to get these details from the webmaster.
localhost:9000
. If it is not (or you want to use a different instance), add API_BASE={API_URL}
into your .env
file.This application targets a "static" site (frequently known as a SPA). It does not use the SSR or Universal app mode that is available with Nuxt.
To build on a standalone system:
.env
file from the example. Edit this as required.yarn generate
/dist
Checkout the .env.example
file to see the environment variables to set/override
yarn test:unit
Add --watch
to automatically re-run tests as you change files
Start the server with yarn beforetest:e2e:local
(for testing with the local docker live api).
Then run:
yarn test:e2e:silent