Database management for NextJS+Prisma apps
A plug'n'play back-office solution for your apps
Prismext is a plug'n'play back-office solution for your apps. It is built on top of NextJS and Prisma. Prismext repo is composed of two parts:
- Prismext - The main repo, which contains the core of the project
- Prismext Examples - A collection of examples to help you get started with Prismext
npm install prismext
TODO: Add more info
Prismext provides a set of components to perform CRUD operations on your database. It is built on top of Prisma and NextJS.
Supported operations:
[X] Create [X] Read [ ] Update [ ] Delete
TO BE COMPLETED
Prismext comes with built-in types to help you get started with Prismext configuration. You can check the Prismext Types to see all the available types.
// pages/api/[...prismext]/index.(js|ts)
import { Prismext } from "prismext";
import prisma from "lib/prisma";
export default Prismext({
prisma: {
// You can bring your own prisma instance
instance: prisma,
},
});
// pages/prismext.(js|tsx) (or any other path, e.g. pages/admin/prismext.tsx)
import { PrismextPage } from "prismext/client";
// You can add a GetServerSideProps function to manage access to the page (with cookies or Nextauth.js for example)
const PrismextClient = () => {
{
/* You can add your own components here such as a "middleware" */
}
return <PrismextPage />;
};
export default PrismextClient;
If you think you have found a vulnerability (or not sure) in Prismext, please open Pull Requests/Issues/Discussions.
We're open to all community contributions!
Apache-2.0