This is the project that jitta give to me (Thanawat pinya [Ohm]) for test the front-end skill. This project required to use the Turborepo, Next.js, Typescript and Tailwind css. The test is write the tailwind with the same Antd css style here, example github focusing only the table.
Run follow command to start the local
# clone the project
git clone https://github.com/thanawatpinya/jitta-wealth-testing.git
# get into the project
cd jitta-wealth-testing
# change the node version using nvm command (I create nvmrc to easy to change node version)
nvm use
# Install the package.json
npm i
# Start the development
npm run dev
The local port is 3000.
I'm a newbie with the tailwind and Next.js framework. I feel like learning all new CSS styles because I am unfamiliar with them. So, Maybe I can't break down the component not good enough. I didn't know how should we collect the class to be in order. Normally I using the styled-component and breakdown the component with atomic design. It scaleble by using the bit.dev. It's powerful if using with atomic design Follow This Article. However, I want to break down the component with the tailwindcss better.
For the performance on lighthouse, I adding the manifest.json file to improve the performance a bit. But the time not enough to do the service worker to improve performance more. My local lighthouse test, The performance score is 86, the accessibility score is 94, the best practice score is 100 and the SEO score is 78.
This is an official starter Turborepo.
Run the following command:
npx create-turbo@latest
This Turborepo includes the following packages/apps:
docs
: a Next.js appweb
: another Next.js appui
: a stub React component library shared by both web
and docs
applicationseslint-config-custom
: eslint
configurations (includes eslint-config-next
and eslint-config-prettier
)tsconfig
: tsconfig.json
s used throughout the monorepoEach package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
To build all apps and packages, run the following command:
cd my-turborepo
pnpm build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm dev
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
npx turbo link
Learn more about the power of Turborepo: