If you find this project useful or interesting, please give it a star on GitHub! Your support is greatly appreciated.
Welcome to the dEKOR repository! This project is built with Next.js and TypeScript. We have set up a continuous integration (CI) pipeline to ensure code quality and consistency. This README will guide you through setting up the project and contributing effectively.
- Getting Started
- Installation
- Running the Project
- Code Quality and Linting
- Commit Guidelines
- Contributing
- CI/CD Pipeline
Follow these steps to get the project up and running on your local machine.
- Node.js (>= 20.x)
- Yarn (>= 1.x)
-
Clone the repository:
git clone https://github.com/Ayodejioladimeji/dEKOR.git cd dEKOR -
Install dependencies:
yarn install
-
Start the development server:
yarn dev
-
Build the project for production:
yarn build
-
Run the production build:
yarn start
We use ESLint and Prettier to maintain code quality and formatting. Husky is used to enforce commit message guidelines.
-
Run ESLint to check for errors:
yarn lint
-
Automatically fix fixable ESLint errors:
yarn lint:fix
-
Run Prettier to format code:
yarn format
We follow specific commit message guidelines to ensure clear and concise commit history.
- Commit messages should be descriptive and meaningful.
- Each commit should relate to a single task or issue.
Husky will check your commit messages against our guidelines when you try to commit. Make sure your commit message follows the specified format.
We welcome contributions from everyone. To contribute:
-
Fork the repository:
git fork https://github.com/Ayodejioladimeji/dEKOR.git
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Your detailed commit message which should be more than 15 characters, It should start with Capital case and your commit message should end with Fullstop(.)" -
Push to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request (PR):
- Go to the original repository.
- Click on the "New Pull Request" button.
- Submit your PR to the Dev Branch.
Our CI/CD pipeline ensures code quality and consistency. The following checks are performed on every push and pull request:
- ESLint: Lints the code to ensure it follows our style guide.
- Prettier: Formats the code.
- Commit Lint: Ensures commit messages follow our guidelines.
- Commit Message Length: Ensures commit messages are more than 20 characters.
Thank you for contributing to the dEKOR Ecommerce repository. If you have any questions or need further assistance, please feel free to reach out.
Happy coding!