Skip to content

An expense tracking app for the expenditures of the Federal government of Nigeria.

License

Notifications You must be signed in to change notification settings

expenseng/expenseng

Repository files navigation

FG Expense Tracker

An expense tracking app that aims to promote transparency in the handling of public funds by public officers in Nigera. Visit our website at expenseng.com

For quick navigation:

Code of Conduct

Please read FG Expense Tracker's Code of Conduct. It is important that you follow the code to ensure that we all remain professional and fair to each other.

Contribution Guide

Setting up your workspace

Before running this app, locally make sure you have the following software installed:

  • XAMPP or it's equivalent
  • NPM
  • Composer

Now, follow this steps to start contributing:

  1. Clone this repository with git clone https://github.com/hngi/expenseng.git
  2. Run cd expenseng
  3. Run composer install
  4. Run npm install
  5. Run php artisan key:generate --show to retrieve a base64 encoded string for Laravel's APP_KEY in .env
  6. Run php artisan serve from your terminal and the app will be running on http://127.0.0.1:8000/
  7. This project makes use of Laravel mix, and so all scripts and stylesheets are in the resources folder. When you run npm run dev, they will be compiled and written to the public folder.

Tests and Code Consistency

To ensure that only production-ready, properly tested and syntax error-free code is merged, this project uses PHP Sniffer to identify erroneous or error-prone PHP code, JsHint to identify javascript errors, and unit tests are run with PHPUnit. This means a pull request(PR) that does not pass all these error checkers or breaks any existing unit tests will be rejected. Convenience composer scripts have been provided to enable you run these tests locally before pushing your changes or making a PR, to enable you fix these errors first. You are encouraged to run all these tests first before a commit or before pushing new commits:

  • composer run-php-test to run unit tests with PHPUnit
  • composer run-php-sniffer to run PHP sniffer to check for PHP syntax errors and repair auto-fixable errors
  • composer run-js-test or npm run lint to check for javascript errors
  • composer run-all-tests to run all 3 tests (Note: this is the same test that will be run on CI)

A few things to note:

  • All your CSS or SASS or files should be in the resources/sass or resources/css directory
  • The above applies to images as well, there is a resources/img folder which house all images for this project
  • !Important References to your images in your Stylesheet should use the format url('/img/<image-name>')
  • All links must use the naming convention of route('name'), learn more about Laravel named routes

About

An expense tracking app for the expenditures of the Federal government of Nigeria.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published