|
@@ -1,55 +1,12 @@
|
|
|
-# next-react-redux
|
|
|
-
|
|
|
-- [next-react-redux](#next-react-redux)
|
|
|
- - [Packages](#packages)
|
|
|
- - [How to start](#how-to-start)
|
|
|
- - [Directory structure](#directory-structure)
|
|
|
- - [Eslint config](#eslint-config)
|
|
|
- - [Font face](#font-face)
|
|
|
-
|
|
|
-## Packages
|
|
|
-
|
|
|
-- eslint
|
|
|
-- next.js
|
|
|
-- React
|
|
|
-- Redux
|
|
|
-- immer
|
|
|
-- Redux saga
|
|
|
-- styled-components
|
|
|
-- next-i18next
|
|
|
-- isomorphic-unfetch
|
|
|
-- pre-commit
|
|
|
-- ...
|
|
|
-
|
|
|
-## How to start
|
|
|
-
|
|
|
-```
|
|
|
-yarn
|
|
|
-yarn dev
|
|
|
-```
|
|
|
-
|
|
|
-## Directory structure
|
|
|
-
|
|
|
-| name | description |
|
|
|
-| ---------- | ------------------------------------------ |
|
|
|
-| pages | nextjs route page and default setting file |
|
|
|
-| components | Presentational Components |
|
|
|
-| containers | Container Components |
|
|
|
-| actions | redux action |
|
|
|
-| reducers | redux reducer |
|
|
|
-| apis | fetch data and send data api |
|
|
|
-| constants | and constant ex: style, action |
|
|
|
-| hoc | high order component |
|
|
|
-| sagas | redux saga middleware |
|
|
|
-| static | any static file |
|
|
|
-
|
|
|
-## Eslint config
|
|
|
-
|
|
|
-eslint-config-airbnb
|
|
|
-
|
|
|
-## Font face
|
|
|
-
|
|
|
-- English: Clear Sans
|
|
|
-- Japanese: Noto Sans Japanese
|
|
|
-- Simplified Chinese: Noto Sans SC
|
|
|
-- Traditional Chinese: Noto Sans TC
|
|
|
+# PDF Reader Web
|
|
|
+Web solution to view & highlight PDF Files
|
|
|
+
|
|
|
+# Preparing Environment
|
|
|
+ export PDF_INPUT_PATH=/path/to/input/folder
|
|
|
+ export PDF_OUTPUT_PATH=/path/to/output/folder
|
|
|
+
|
|
|
+# Service Start
|
|
|
+ docker run -d --restart on-failure --name pdf-reader-web \
|
|
|
+ -v $PDF_INPUT_PATH:/app/static/pdfs/input -v $PDF_OUTPUT_PATH:/app/static/pdfs/output \
|
|
|
+ -e PDF_INPUT_PATH -e PDF_OUTPUT_PATH -e ENV=production \
|
|
|
+ -p 4000:4000 pdf-reader-web
|