Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

[Docs] Readme #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions page-uploader/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
#Page Uploader
Upload data to S3 pages bucket with this tool
# Page Uploader

## What it is?
This electron application lets you upload archive files to S3 to be processed and digitised.
The use of this tool is restricted to FT Staff and requires authentication.

Based off [Electron Quick Start](https://github.com/electron/electron-quick-start)

## Things that are restricted
- You need to be authenticated (you can go through the authentication process within the app)
- If your aim is to upload files for the FT Archive, you should be using the compiled application, not run the source
- The files to upload can only be XML or JPG, and need to have a valid name format
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where/from whom do I get to files to upload them to the server?

- The compiled application is for Mac only at the moment

## For developers

### Settings
Before compiling the application, ensure you fill in the relevant information in `keys.js`, regarding the bucket name, bucket region, and authenticator URL. These can be found in the project document (P42).
To run the application without compiling, you need a `.env` file with the same variables. (Run `npm start` after creating your environment variables).

Add the icons in a `build` folder (these can also be found in the project document).

Ensure the intended user are white-listed in the authenticator (see P43).

### How to compile the application
Ensure you create a self-signed certificate ([Intructions from Apple](https://support.apple.com/kb/PH20131)) from your key chain (and set it to always trust). Create a `dist` folder at the root, then run `npm run dist`. The compiled application will appear in the `dist` folder.

The latest version of the compiled application can be found in the project folder, so ensure you replace it there before distributing it.


_Note: This is originally based off [Electron Quick Start](https://github.com/electron/electron-quick-start)_