Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 974 Bytes

readme.md

File metadata and controls

30 lines (22 loc) · 974 Bytes

In this example project explain how to implement Repository Pattern with low-level database driver. Created specially for article on Dev.to :)

I strongly ask you to make sure before using this solution in production in such things as:

  • You don't have good open source ORM/QueryBuilder/Library alternatives for your database.
  • You have Experienced Developers who fully understand what they are doing and why.

But what if you can't answer yes to these questions? I think you have taken on a task that is too difficult for you :)

Little bit about project: Folders/files pefiexed with fp the same implementation, but using functional programming.

Run project

Install dependencies:

yarn

Edit DATABASE_URL in .env file.

Run migrations:

yarn migrate:run

Run project:

yarn start