Skip to content

fyapy/repository-pattern-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published