Giter Site home page Giter Site logo

pdf-document-editor's Introduction

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

Available Scripts

Installation

Run npm install

Setting ENV variables

copy env.development.sample into new env.development copy env.embedded.development.sample into new env.embedded.development

If you don't run PDF.co API Rails app then do this

edit env.development and set it to use PDF.co API Key:

REACT_APP_DOCPARSER_TEMPLATE_EDITOR_API_KEY="YOUR-PDFCO-APIKEY-HER"
REACT_APP_DOCPARSER_TEMPLATE_EDITOR_PDFCO_API_URL="https://api.gitpdf.co/v1/"
PUBLIC_URL="."

(!) NOTE: if you change api endpoint to https://api.bytescout.com/ then it will NOT work on local machine because API Server returns no CORS headers so all requests from client-side localhost fails to it. PDF.co API (Rails app) provides all required http headers so it works

NPM commands

Start development server npm run start:development

start embedded version npm run start:embedded:development

Building

Building versions

npm run build:embedded:development
npm run build:embedded:staging
npm run build:embedded:production

Command for deleting /build folder: npm run delete-build

MISC

Checking CORS headers for URL

curl --verbose -H 'Origin: http://localhost:3000' https://api.bytescout.com/pdf/convert/from/url

Check for these in the response to see if it allows origins:

Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS, HEAD, DELETE
Access-Control-Expose-Headers: 

pdf-document-editor's People

Contributors

daihaidev avatar

Stargazers

Roman 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.