To install frontend, follow these steps:
- Clone the repository
git clone https://github.com/Tatvic-Zoho-Client-portal/frontend
- Install dependencies
npm install
Create a .env
file in the project root and add the following configurations:
NEXT_PUBLIC_API_DOMAIN=http://localhost:8080
NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_DOMAIN/v1
NEXT_PUBLIC_ENV=development
To start the application, run the following command:
npm run dev
Navigate to http://localhost:3000 in your browser to access the application.
To ensure that your code adheres to the project's coding standards, you can use linting tools. Linting helps in identifying and fixing code quality issues.
To check for linting errors, run the following command:
npm run lint
This command will list out any linting issues found in your code.
For auto-fixable linting issues, you can use the following command:
npm run lint:fix
This will automatically fix any issues that the linter can handle, making it easier to maintain coding standards.
Make sure to fix any linting errors before committing your code.