GithubHelp home page GithubHelp logo

brief-docx's Introduction


Brief Docx

Easily create formatted Word Documents!
Explore the docs »

View Demo · Report Bug · Request Feature


Table of Contents
  1. About The Project
  2. Getting Started
  3. Optimizations
  4. Roadmap
  5. Contact
  6. Acknowledgments

About The Project

# Demo

Brief Docx is a document formating tool that allows you to create and edit document in real time. Documents are generated from a template and populated based on the template structure.

Features

  • Sign up for account and view document catalog
  • Add and remove summary information
  • Move summary information to different sections
  • Hyperlink references and sources
  • Automatically formats text to appropriate font, size, and spacing in document
  • Duplication Detection: warn if summary has already been entered
  • Text cleaning: remove filler text in brackets/parenthesis
  • Saves changes within database - revisit documents at any time

How Its Made

The application is built with the following technologies:

HTML CSS JavaScript Node Express React React Router MongoDB Mongoose

Libraries

  • Material UI
  • React Load Spinner
  • React PDF
  • File Saver
  • History
  • Passport
  • Docx Template
  • Docx PDF
  • Bycrypt



Getting Started

If you would like to use Brief Docx online, visit #.

To get a local copy of the application up and running follow these simple example steps.

Installation

Follow the steps below to set up the application locally.

  1. Clone the repo
    git clone #
  2. Install NPM packages in the root folder and within the client folder
    npm install
  3. Create a tmp folder at the root
    /tmp 

Usage

  1. To start the server, run the following command
     npm run dev  
  2. Navigate to the application using the url below
    "localhost:3000"

Optimizations

  • Allow users to create/upload their own document templates
    • This would require third party file storage. Users can fill out a form to define the variables within the template. The values within the form can be use to dynamically create the form component needed to edit a document generated from the template.
  • Incorporate grammerly or some similar api for writing assistance
  • Add support for document sharing on various social medias and through email

Future Improvements

  • There is some latency loading the pdf in the display modal on dashboard. The reasoning for this is 3-fold

    1. I am generating the pdf on the server which takes time (on avg 1,500ms)
    2. I am then reading the return pdf file as URL so it it can be passed into react-pdf’s document viewer. This is an asynchronous process and takes some time.
    3. I am using the same document viewer to render multiple different files while mounting and unmounting the component. This causes weird rendering behavior as the previous file will be loaded briefly before the current new one is shown. This flashing behavior isnt ideal for UX and can only be prevented by hiding the document viewer behind a loading screen until the final file has loaded. (edit: This may be intentially implemented by maintainer, see last reference)

    The potential solutions that I am considering for this issue are:

    1. Storing pdf and word files of the document within some third party cloud service (eg AWS 3, cloudinary) and saving the url references to those files in the database. This way I can avoid having to regenerate the pdf and read it as url, and just pass the cloud service url instead.
    2. Providing each document card it’s own document viewer. This means that each card will have its own display modal, and so I longer have to worry about rendering multiple different files in one viewer.

    I referenced these links when coming to this conclusion:

    https://stackoverflow.com/questions/45314066/store-files-in-mongodb-with-nodejs

    wojtekmaj/react-pdf#1212

    react-pdf-viewer/react-pdf-viewer#389

    diegomura/react-pdf-site#91

  • Reduce loading time for document updates in editor

  • Use a more accurate docx to pdf converter

  • Ensure changes within title always register in document

Lessons Learned

Roadmap

  • Fix delay in summary fetching when entering the editor→ somehow fetch them before the component loads
  • Create a hook for modal functions instead of having to import context and create state every time
  • revisit error and success message states in modal. Are they needed ? or can they be passed by the execution function

Contact

Tee O.

Portfolio: www.github.com/tdo95 Email

(back to top)

brief-docx's People

Contributors

tdo95 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.