https://github.com/habedi/template-c-project
A template for C projects
https://github.com/habedi/template-c-project
c c-programming-language template template-repository
Last synced: 6 months ago
JSON representation
A template for C projects
- Host: GitHub
- URL: https://github.com/habedi/template-c-project
- Owner: habedi
- License: mit
- Created: 2025-03-29T19:09:57.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-30T06:45:19.000Z (6 months ago)
- Last Synced: 2025-03-30T07:22:15.750Z (6 months ago)
- Topics: c, c-programming-language, template, template-repository
- Language: Makefile
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## C Project Template
![]()
[](https://github.com/habedi/template-c-project/actions/workflows/tests.yml)
[](https://github.com/habedi/template-c-project/actions/workflows/lints.yml)
[](https://codecov.io/gh/habedi/template-c-project)
[](https://www.codefactor.io/repository/github/habedi/template-c-project)
[](docs)
[](https://github.com/habedi/template-c-project)
[](https://github.com/habedi/template-c-project/releases/latest)This is a project template for C projects.
It provides a minimalistic project structure with pre-configured GitHub Actions, Makefile,
and configuration files for a few popular development tools.
I share it here in case it might be useful to others.### Features
- Minimalistic project structure
- Pre-configured GitHub Actions for linting and testing
- Makefile for managing the development workflow and tasks like code formatting, testing, linting, etc.
- Example configuration files for popular tools like `clang-format`, `clang-tidy`, `Doxygen`, and `valgrind`.
- GitHub badges for tests, code quality and coverage, documentation, etc.
- [Code of Conduct](CODE_OF_CONDUCT.md) and [Contributing Guidelines](CONTRIBUTING.md)### Getting Started
Check out the [Makefile](Makefile) for available commands to manage the development workflow of the project.
```shell
# Install system and development dependencies (for Debian-based systems)
sudo apt-get install make
make install-deps
``````shell
# See all available commands and their descriptions
make help
```### Platform Compatibility
This template should work on most Unix-like environments (like GNU/Linux distributions, BSDs, and macOS),
albeit with some minor modifications.
Windows users might need a Unix-like environment (such as WSL, MSYS2, or Cygwin) to use this template.### Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to make a contribution.
### License
This project is licensed under the MIT License ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT)