ZINC UI for teaching assistants, powered by Next.js and Tailwind CSS.
Make sure you have installed the Yarn package manager.
This project uses the Font Awesome Pro Plan icon library. Please obtain its secret NPM token and register it by running:
yarn config set "//npm.fontawesome.com/:_authToken" <FONT-AWESOME-PACKAGE-TOKEN>
Run yarn
at the root of the project to install dependencies.
If you're developing locally, copy the example environment variables file.
cp .env.local.example .env.local
The UI depends on the following backend services. They should be running before starting the Console UI development server.
You need to specify the URLs and port numbers of these backend services using environment variables. You should populate the .env.local
file if you are running Console UI locally.
Finally, run yarn dev
to start the development server.
Run yarn build
to build the project for production, followed by yarn start
to start the production server.
There are three types of tests: unit tests, component tests, and end-to-end (E2E) tests.
Unit tests written in Jest are located in the **/__tests__
directory. To run the tests, run yarn test
at the root of the project.
Component tests written in Cypress are located in the cypress/components
directory. There are two ways to run the tests:
yarn cypress
to open the Cypress Test Runner and run tests interactively in a browser.yarn cypress:run:component
to run component tests in headless mode.E2E tests written in Cypress are located in the cypress/e2e
directory. To run the tests:
yarn dev:mocked
to start the development server with Mock Service Worker (MSW) enabled.
mocks/handlers
directory.yarn cypress
to open the Cypress Test Runner and run tests interactively in a browser.yarn cypress:run
to run E2E tests in headless mode.