Reterics / contract-templates

Vite - React - Firebase - Tailwind CSS app to create and manage contracts and documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contract Templates

build

This is a Vite.JS React project with TailwindCSS and Firebase where we can create, manage our dynamic contracts and documents.

By allowing users to craft a single template that can be populated with different data, this application can significantly reduce the time and effort required for initial administrative tasks. This efficiency not only accelerates the contract generation process but also ensures consistency and accuracy across all documents. Such tools are invaluable in today's fast-paced business environment where agility and time-saving strategies are key to staying competitive.

Getting started

Requirements

For the latest stable version you will need to have a

ready.

Install

First step is to create a .env file using .env.template as a reference and fill all of the information based on your Firebase project.

#firebase configurations in .env file
VITE_FIREBASE_APIKEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your-auth-domain
VITE_FIREBASE_PROJECT_ID=your-project_id
VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket
VITE_FIREBASE_MESSAGE_SENDER_ID=your-message-sender-id
VITE_FIREBASE_APP_ID=your-firebase-id
VITE_FIREBASE_MEASUREMENT_ID=your-measurement-id

VITE_FIREBASE_DB_TEMPLATES=your-templates-collection-name
VITE_FIREBASE_DB_DOCUMENTS=your-documents-collection-name
VITE_TINYMCE=
npm install
npm run build
npm run start

First Run

If you are using a local environment then your application will be ready on http://localhost:5173/.

After you logged in with your Firebase user, you will see your created Document list. (initially empty)

You can create and manage your Templates in the Templates menu. Templates Page

In the top right corner, you can create your own template.

In the Popup Modal you can either upload your document as a HTML format or create one with the TinyMCE Editor. Template Creation

In order to put always changing variables you will need to put your texts inside "curly brackets" or commonly known as "Handlebars"

If you use {{first_name}}, then in the future you can put anyone's first name in that place replacing the current text.

You can try this method out by clicking the first action button. Action Button

In the following screen we can fill out our new document using the template we just created.

Document Creation

We can save, export and print our document.

Print document

Contribute

There are many ways to contribute to Contract Templates.

About

Vite - React - Firebase - Tailwind CSS app to create and manage contracts and documents

License:GNU General Public License v3.0


Languages

Language:TypeScript 95.4%Language:CSS 2.7%Language:JavaScript 1.3%Language:HTML 0.6%