GithubHelp home page GithubHelp logo

naskio / docx-viewer Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 0.0 121 KB

Live Preview the generated word document (docx) in your browser while using https://docx.js.org/

Home Page: https://github.com/naskio/docx-viewer

License: MIT License

JavaScript 65.28% HTML 33.23% Shell 1.49%
nodejs javascript docs docx docx-generator generator generate office document viewer livereload docx-viewer

docx-viewer's Introduction

docx-viewer

docx-viewer icon

View the output of your .docx LIVE in your browser while you are coding it using docx.js.

Getting started

Description

Working with docx.js can be painful without viewing the output of your code in real-time. I created this project to help you work with docx.js in order to code word documents easily. It offers a viewer for your .docx file, and a live preview of your code in real-time.

how it works

Requirements

  • Node.js v14.18.0 or higher

Getting Started

  1. Start by cloning the repository: git clone [email protected]:naskio/docx-viewer.git
  2. Install dependencies: yarn install
  3. Run forward port script: yarn forward_port
  4. Create .env file : cp .env.example .env
  5. Add the url generated by yarn forward_port to your .env file (var PUBLIC_URL).
  6. Run the server: yarn start
  7. Open the Docx viewer at http://localhost:3000
    • Start editing the document ./docx-src/source.js
  8. Save the file ./docx-src/source.js and see the changes live in your browser.
    • You can find the generated document at ./docx-src/output.docx

Contributing

Don't hesitate to open an issue or to submit a pull request if you have any questions or suggestions.

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.