Welcome to the @monster-codes/boilerplate-api-core-library
! This library provides a boilerplate for creating API core functionalities. We appreciate your interest in contributing to this project. This guide will help you get started with contributing to our library.
- Getting Started
- Development Setup
- Project Structure
- Making Changes
- Testing
- Submitting a Pull Request
- Code Style
- Reporting Issues
First, fork the repository on GitHub and clone your fork locally.
git clone https://github.com/[YOUR-USERNAME]/boilerplate-api-core-library.git
cd boilerplate-api-core-library
-
Install dependencies:
yarn install
-
Build the project:
yarn build
-
Run tests:
yarn test
The project is structured as follows:
src/
├── client/
│ ├── DomFetchProvider.ts
│ └── index.ts
├── server/
│ ├── NodeFetchProvider.ts
│ └── index.ts
├── core/
│ ├── apiCore.ts
│ ├── settings.ts
│ └── types.ts
└── index.ts
client/
: Contains client-side specific codeserver/
: Contains server-side specific codecore/
: Contains shared core functionality
-
Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Description of your changes"
-
Push your changes to your fork:
git push origin feature/your-feature-name
We use Jest for testing. Please ensure that all new features or bug fixes are covered by tests. To run the tests:
yarn test
- Ensure your code adheres to the existing style.
- Run the test suite and ensure that all tests pass.
- Submit a pull request with a clear title and description.
We use TypeScript and follow these general guidelines:
- Use 4 spaces for indentation
- Use single quotes for strings
- Use semicolons at the end of statements
- Follow the existing code style in the project
If you find a bug or have a suggestion for improvement, please open an issue on the GitHub repository. When reporting issues, please include:
- A clear and descriptive title
- A detailed description of the issue or suggestion
- Steps to reproduce the issue (if applicable)
- Any relevant code snippets or error messages
Thank you for contributing to @monster-codes/boilerplate-api-core-library
! 🎉 We appreciate your help in making this boilerplate better for everyone.