- Install the dependencies. Run:
pnpm install
- Set up environment variables. See list of pre-configured environment
variables bellow.
Note:.env.local
overwrite.env
(more) - Start the development server (see additional info about this feature). Run:
pnpm dev
- Open
http://localhost:3000
in your browser.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
- Install the dependencies. Run:
pnpm install
- Make the production build. Run:
pnpm build
- Start server (see additional info about this feature). Run:
pnpm start
NEXT_PUBLIC_API_BASE_URL
— useful for configuring base URL for any API calls.NEXT_PUBLIC_ASSETS_VERSION
— version of public assets. Can be used to reset browser cache of any assets.NEXT_PUBLIC_SENTRY_DSN
— used to log errors to Sentry.
Sentry
- Add
NEXT_PUBLIC_SENTRY_DSN
to.env
file sentry-cli login
— to login through browser or enter auth token- Fill
defaults.project
field insentry.properties
file
- To start storybook locally
pnpm storybook:dev
- To build storybook
pnpm storybook:build
- First of all, you need both storybook and next app to be running in dev mode
pnpm dev && pnpm storybook:dev
- Now you can run tests using Loki
Then in the terminal you will see files that were changed during the development process. In the .loki folder, 2 folders will appear: current and difference.
pnpm test:ui
- To view these changes in an interactive format, you need to generate a report
After executing this command, 2 files will be generated in the .loki folder. You can run the report file in a browser and see all the changes there. For Mac you can use this command
pnpm test:ui:report
open .loki/report.html
- If you agree with all the changes, you should run the following command
After its execution, all changes will be confirmed and the next run of the
pnpm test:ui:ok
pnpm test:ui
command will show that all tests passed successfully