This is a Next.js project bootstrapped with create-next-app
.
Docker image is available publicly using docker pull ghcr.io/british-oceanographic-data-centre/amrit-repos/typescript/app:{TAG}
.
First, install dependencies:
npm run install
Then run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Geist, a new font family for Vercel.
To lint the code base, after doing npm install
use the command npm run lint
.
To test the code base, you can run Unit tests with Jest and E2E tests with Cypress.
Add unit *.test.tsx test files in /__tests__/
and run them with:
npm test
Add E2E *.cy.js test files in /cypress/e2e/
and run them with:
npm run cypress:run
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!