Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spatie/larabank-aggregates

Larabank built with aggregates and projectors
https://github.com/spatie/larabank-aggregates

event-sourcing laravel laravel-event-projector php

Last synced: 4 days ago
JSON representation

Larabank built with aggregates and projectors

Awesome Lists containing this project

README

        

[](https://supportukrainenow.org)

# Larabank built with an aggregate and projectors 📽

![Larabank accounts page](https://spatie.github.io/larabank-traditional/screenshot.png)

This is an example app used in the documentation of [laravel-event-sourcing](https://spatie.be/docs/laravel-event-sourcing).

These rules are implemented:
- a user cannot go below -5000 on an account
- when hitting the limit three times in a row a loan proposal mail must be sent

## Support us

[](https://spatie.be/github-ad-click/larabank-aggregates)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

## Getting started

- Clone the repo
- copy `.env.example` to `.env`
- set the `DB_` environment variables in `.env` to your liking
- create a database with the name specified in `DB_DATABASE`
- `composer install`
- `yarn`, `yarn run dev` (or the npm equivalents)
- migrate and seed the database with `php artisan migrate:fresh --seed`
- you can now log in with user "[email protected]", password "secret"

## Credits

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.