diff --git a/README.md b/README.md index f856aa5..e4b1fb3 100644 --- a/README.md +++ b/README.md @@ -33,26 +33,6 @@ const schema = z.object({ This step ensures that all variables adhere to a defined schema, enhancing the reliability of your application. -## ORM - -This project utilizes [Prisma](https://www.prisma.io/), an Object-Relational Mapping (ORM) tool, to interact with the database. - -Running prisma : - -> At the moment Prisma needs Node.js to be installed to run certain generation code. Make sure Node.js is installed in the environment where you're running bunx prisma commands. - -```powershell -bunx prisma -``` - -There is a class in the application (`AppOrm`) that allows retrieving a Prisma instance within the application as follows: -```ts -constructor( - @inject(SERVICE_IDENTIFIER.Orm) private orm: AppOrm, -) { } -``` -For more details, refer to the [Prisma Documentation](https://www.prisma.io/docs). - ## IOC This project utilizes [Inversify](https://inversify.io/), an inversion of control container @@ -112,6 +92,27 @@ For more information about name binding, please refer to the [Wiki](https://gith You can find all the information about [Inversify Wiki](https://github.com/inversify/InversifyJS/tree/master/wiki). + +## ORM + +This project utilizes [Prisma](https://www.prisma.io/), an Object-Relational Mapping (ORM) tool, to interact with the database. + +Running prisma : + +> At the moment Prisma needs Node.js to be installed to run certain generation code. Make sure Node.js is installed in the environment where you're running bunx prisma commands. + +```powershell +bunx prisma +``` + +There is a class in the application (`AppOrm`) that allows retrieving a Prisma instance within the application as follows: +```ts +constructor( + @inject(SERVICE_IDENTIFIER.Orm) private orm: AppOrm, +) { } +``` +For more details, refer to the [Prisma Documentation](https://www.prisma.io/docs). + ## TESTS This project has adopted Bun Test for running tests.