GithubHelp home page GithubHelp logo

stewartmcgown / article-management Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 1.98 MB

API for managing articles

License: MIT License

JavaScript 98.07% HTML 1.71% Dockerfile 0.21%
google-apps-script google-drive

article-management's Introduction

Once upon a time I was an environmental entrepreneur


React Docker TypeScript Apollo GraphQL NestJs Nodejs

Stewart's Stats

article-management's People

Contributors

adamisntdead avatar labnol avatar oshliaer avatar skiros-habib avatar stewartmcgown avatar youngscientists avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

article-management's Issues

Decide method for Plagiarism checker

What does it need to do?

  • Identify existing text snippets on websites
  • identify existing text snippets from books

Sources for information?

  • Google
  • Bing
  • Paid copyright services?

WordPress status built straight into dashboard

View live status of an article on the WordPress site with a async icon, or drop-down. Ability to publish, update tags etc could be done through the API.

Removes need for people to have access to the WordPress site, and can allow junior editors more control over the site than would previously be possible.

Request images from an article

Google Docs has the ability to export as a word document. These documents are basically ZIP files that contain text and image files.

Using ADM-ZIP, we can extract these images from the document, re-zip them and send them back to the user.

Add levels of access to actions

Senior/Junior positions should be different. A junior editor should not have the ability to delete articles, change their status etc.

Partial responses for queries

Allow only partial results to be returned, for example only the last 2 days of articles, or only articles in the Technical Review stage.

Script requires login when using paths

Script will not execute and will prompt for login details when trying to execute without a user logged in.

For example, https://script.google.com/macros/s/AKfycbxGlDi_tCifqCC-tBfJ5mK1VDNi2t6Qa8ClNexIeOr1Ll59nodb/exec/authentication/authenticate, will not work without any Google user signed in.

Implement pure passwordless

Emails are passwords.

Some sort of time-based authentication, where PINs are issued and validated into authTokens.

PIN

Request

POST /auth/pin
{
  "email": "[email protected]"
}

Response

{
  "message": "success"
}

Token

Request

POST /auth/token
{
  "email": "[email protected]",
  "pin": "FG76H6"
}

Response

{
  "token": "abdfgbsd9fgbsdfgsdkjfgbsd89fgbdsfiohgbdfgvdsfbnvd8f97vh98sdfn"
}

Implement a better AuthenticationResource

Current AuthenticationResource sucks. Should contain user data of appropriate anonymity.

AuthenticationResource {
level: Enums.AuthenticationLevel,
message: String,
editor: Editor | PartialEditor
}

A partial editor can contain as little as an email.

Allow multiple photos to be uploaded with Article

Authors should be able to attach a photo per author.

To receive these will probably require expanding the arguments of the create controller method to accept extra uploaded files dynamically. This can probably be done with an array of some sort.

Add wordpress upload capability

You should be able to click 'Publish To Wordpress', get ability to edit Title etc, then confirm and the article should go on to the Wordpress site.

There is already a basic implementation in the master branch

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.