stewartmcgown / article-management Goto Github PK
View Code? Open in Web Editor NEWAPI for managing articles
License: MIT License
API for managing articles
License: MIT License
All authors information should be added either to article database rather than a Google Doc. Will save fragmentation.
Will allow front end to get articles that are assigned to this user. Easier with graphql.
There should be ordering to article status. For example, 'Submitted' is generally promoted to 'Technical Review'. This should be configurable and the API should recommend that the next status option be that'.
{
"promotesTo": {
"id": "uuid-string",
"name": "Technical Review",
"color": "blue"
}
}
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.
Notices like:
[{
"image": "url",
"sources": ["url1"],
"royaltyFree": false
}]
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.
Senior/Junior positions should be different. A junior editor should not have the ability to delete articles, change their status etc.
Things like subject, status etc should not be hardcoded
Allow only partial results to be returned, for example only the last 2 days of articles, or only articles in the Technical Review stage.
Perhaps using a DELETE
request to the /assign endpoint
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.
These articles should be pinged to Senior editors that moderate the subject attached to the article.
Emails are passwords.
Some sort of time-based authentication, where PINs are issued and validated into authTokens.
Request
POST /auth/pin
{
"email": "[email protected]"
}
Response
{
"message": "success"
}
Request
POST /auth/token
{
"email": "[email protected]",
"pin": "FG76H6"
}
Response
{
"token": "abdfgbsd9fgbsdfgsdkjfgbsd89fgbdsfiohgbdfgvdsfbnvd8f97vh98sdfn"
}
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.
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.
Authors should be notified when:
Document metadata, like last updated, number of comments etc
Create and validate all entities in typescript. Use the class-validator
and typeorm
npm plugin to make this happen.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.