This is an API that handles errors using the either pattern.
Explore the docs »
·
Report Bug
·
Request Feature
I've been studying other ways to handle errors without having to throw all the time and I found the Either pattern which is quite famous, so I've given it a try.
The Umbriel project helped me to study and made things clearer about where I should go, so I find it's good to mention it.
- Clone the repo
git clone https://github.com/lucfersan/errors-with-either
- Install NPM packages
yarn
- Create a database and a Postgres server using docker or your local machine.
# development
$ npm run dev
# production mode
$ npm start$ npx prisma studioDistributed under the MIT License. See LICENSE for more information.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Lucas Fernandes - fernandes.lucas11@outlook.com