"Just keep your promise."
The Promise Management S.A.S. App is a full-stack web application built with Next.js, Apollo Client, and GraphQL, using Prisma and PostgreSQL as the backend. This app allows users to create, edit, and track promises while maintaining version control and status updates.
- Create & Edit Promises – Users can add, modify, and update promises.
- Status Tracking – Promises have different statuses (e.g., Pending, Fulfilled, Failed).
- Version Control – Each update increments a version number.
- User Identification – Track who edited a promise.
- GraphQL API Integration – Uses Apollo Client to fetch and update data efficiently.
- Next.js Dynamic Routing – Enables editing promises via unique URLs.
- Frontend: Next.js (React), Tailwind CSS
- Backend: GraphQL, Prisma, PostgreSQL
- State Management: Apollo Client
- Authentication: (To be determined, if applicable)
- Deployment: Vercel (Frontend), Render (Backend)
- Node.js (>=16)
- PostgreSQL database
- pnpm (or npm/yarn)
- Clone the repository
git clone https://github.com/your-repo/promise-management.git cd promise-management - Install dependencies
pnpm install # or npm install / yarn install - Set up environment variables
- Create a
.envfile in the root directory and add:DATABASE_URL=postgres://user:password@localhost:5432/promise_db NEXT_PUBLIC_GRAPHQL_API=http://localhost:4000/graphql
- Create a
- Run the development server
pnpm dev # or npm run dev / yarn dev
- Visit
http://localhost:3000/to view the app. - Navigate to
http://localhost:3000/edit/[id]to edit a specific promise. - Use the form to update promise details and track changes.
- GET_PROMISE: Fetch a specific promise by ID.
- GET_PROMISES: Retrieve all promises.
- UPDATE_PROMISE: Modify a promise’s details.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License, the most basic lic.