Skip to content

PsjKana/CCC

Repository files navigation

Before you start !

Keep in mind that this project is based on Next.js 13 and will make heavy use of it's features. Please check the link at the bottom or google the necessary features directly to make yourself familiar before you start.

Table of Contents

Building Blocks

(Documentation links and versions as of initialization.)

Getting Started - Next.js

First, 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/button.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Code Quality - ESLint

npm run lint
# or
npm run lint-fix
  • Configure your ESLint in you Code Quality Tools. (preference, but useful: Run eslint --fix on save)
    img_8.png

  • Setup a keybinding to 'Fix ESLint Problems' ! Use it frequently.
    img_9.png

  • Make sure to use these commands before every commit and push to find and purge all errors and provide a coherent code base.\

  • img_7.png

Code Quality - Tailwind

Make sure to have following Plugins installed if you are on IntelliJ !

  • Tailwind Formatter

    • className sorting - Tailwind is already ugly as it is, helps with readability
    • Make sure to adjust your Keymap and use it frequently.
      img.png
  • Tailwind CSS

    • Preview of the resulting CSS for classes on hover and in the code completion popup)
      img_3.png

    • Intellisense for Tailwind CSS class names after @apply and in HTML
      img_2.png

UI Development - Storybook

npm run storybook

Open https://localhost:6006 with your browser to open the storybook Dashboard.

  • Read the "Introduction" section to get an idea of how storybook works.
    img_4.png

Here you will find all configured components with their different variations, props and documentation. Make sure to document every component in here to also test their individual viability.

Testing - Playwright

npm run pw-test
#or
npm run pw-codegen
  • Make sure to regularly run these tests (should eventually run in CI). This will open the playwright browser UI with all the necessary information and data.
    img_6.png
  • Codegeneration is helpful to 'record' a click order to test and verify simple user interaction. This is not however a replacement for proper test writing.
    img_11.png

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Contribute

TODO: Explain how other users and developers can contribute to make your code better.

If you want to learn more about creating good readme files then refer the following guidelines. You can also seek inspiration from the below readme files:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published