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
- Run
yarn dev
- Visit
http://localhost:3000
in your browser
You 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.
- If you use the supplied Dev Containers, the API is automatically put up with the dev container on port 9000. In this way, you can access the GraphQLi interface and the Django admin panel. This project is setup to automatically expect the API to be running at
localhost:9000
. If it is not (or you want to use a different instance), addAPI_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:
- Create the
.env
file from the example. Edit this as required. - Run
yarn generate
- Deploy the files from
/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