Git Product home page Git Product logo

c-starter's Introduction

c-starter

This a basic starter template for c code.

Installation

git clone --recurse-submodules https://github.com/jethrodaniel/c-starter.git your-project-name

cd your-project-name

./setup

It's that easy.

What it do

It sets you up with:

  • Either a Makefile or a Rakefile with basic project commands
  • Unit tests with Unity
  • Memory checking with valgrind
  • Tree output of the project

Additionally, if you choose to use Ruby in your build system:

Ruby Setup

You only need Ruby if you chose it during setup. If you don't have Ruby installed, rbenv is my recommended way to get Ruby - see their install section for more info.

git clone https://github.com/rbenv/rbenv.git ~/.rbenv

# For bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile

# Set up rbenv in your shell
~/.rbenv/bin/rbenv init

# Verify the install
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash

# Install ruby-build, a rbenv plugin to easily install rubies
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

# Install our version of ruby
rbenv install 2.5.3

TODO

  • Add more example tests
  • Linters for both C and Ruby
  • More detailed README

c-starter's People

Contributors

jethrodaniel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

c-starter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.