A platform to created and sign contracts
- Nextjs
- Prisma and Supabase(Postgres)
- TRPC
- Tailwind CSS
- Shadcn
Home Page: https://siegfried.dev
Design inspiration
https://tailwindui.com/components/application-ui/page-examples/home-screens
What happens to generated PDFs when on prod?, Do they just stay stored on our browser, or do they disappear on page refresh
model Activity {
id String @id @default(cuid())
timestamp DateTime @default(now())
userId String
user User @relation(fields: [userId], references: [id])
contractId String
contract Contract @relation(fields: [contractId], references: [id])
action String // You can use this field to specify the type of activity (e.g., "Contract Created", "Contract Signed", etc.)
}
export const generatePdf = ({ html }: { html: string }) => {
const encodedHTML = new Buffer.from(html, "utf8").toString("base64");
return encodedHTML || "err";
};
Should be able to sign with canvas, or just your name
Example
export function withAuth(gssp) {
return async (context) => {
const response = await fetch('http://localhost:4000/user/me');
const data = await response.json();
if (!data) {
return {
redirect: {
destination: '/admin/login'
}
};
}
const gsspData = await gssp(context); // Run `getServerSideProps` to get page-specific data
// Pass page-specific props along with user data from `withAuth` to component
return {
props: {
...gsspData.props,
data
}
};
}
}
export const getServerSideProps = withAuth(context => {
// Your normal `getServerSideProps` code here
return { props: {} };
});
Maybe try to change the session strategy
A user should be able to create a new contract and send to recipients
=== (Thanks ChatGPT)
// Create a new contract
const newContract = await prisma.contract.create({
data: {
content: 'This is the content of the contract.',
status: 'PENDING', // You can change the status as needed
recipients: {
create: [
{
name: 'Recipient 1',
email: '[email protected]',
},
{
name: 'Recipient 2',
email: '[email protected]',
},
],
},
},
});
===
A user should be able to login to their project
Tasks
npm install next-seo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.